feat(hello): add a Hellorld application
just the docs example, but better commented
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* hello.c
|
||||
*
|
||||
* Hellorld application using Psion's "CLIB" - just plain C, no Psion extensions
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(VOID) {
|
||||
// Does sprintf work here? The SDK is probably too old, but modern conventions would be nice
|
||||
printf("Hellorld!");
|
||||
// Wait for a key to be pressed
|
||||
getchar();
|
||||
// Exit, not sure why 0 is being passed as it's a void? But this is the SDK example code
|
||||
return(0);
|
||||
}
|
||||
Reference in New Issue
Block a user