ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
helloworld.c File Reference
#include <stdio.h>
#include <tamtypes.h>
#include <sifrpc.h>
#include <debug.h>
#include <unistd.h>
+ Include dependency graph for helloworld.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 17 of file helloworld.c.

18 {
19  SifInitRpc(0);
20  init_scr();
21 
22  scr_printf("Hello, World!\n");
23 
24  // After 5 seconds, clear the screen.
25  sleep(5);
26  scr_clear();
27 
28  // Move cursor to 20, 20
29  scr_setXY(20, 20);
30  scr_printf("Hello Again, World!\n");
31 
32  sleep(10);
33 
34  return 0;
35 }
void init_scr(void)
Definition: scr_printf.c:185
void scr_setXY(int x, int y)
Definition: scr_printf.c:297
void scr_printf(const char *,...)
Definition: scr_printf.c:252
void scr_clear(void)
Definition: scr_printf.c:313
void SifInitRpc(int mode)
unsigned int sleep(unsigned int seconds)
Definition: sleep.c:98

References init_scr(), scr_clear(), scr_printf(), scr_setXY(), SifInitRpc(), and sleep().