Added mauricetmeyer.c to code samples

This commit is contained in:
Maurice T. Meyer 2018-09-30 23:29:17 +02:00 committed by Luke Oliff
parent e5319a6472
commit 15d1e89dcb
1 changed files with 40 additions and 0 deletions

40
code/mauricetmeyer.c Normal file
View File

@ -0,0 +1,40 @@
/**
* mauricetmeyer.c
*
* Author: Maurice T. Meyer
* E-Mail: maurice@lavireo.com
*
* Date: 01-10-2018
*/
#include <stdio.h>
static char hello_world[] = {
0x48,
0x65,
0x6c,
0x6c,
0x6f,
0x2c,
0x20,
0x57,
0x6f,
0x72,
0x6c,
0x64,
0x21,
0xA,
0x0
};
int
main (void)
{
char* ptr = hello_world;
do
{
printf("%c", *ptr++);
} while(*ptr != 0);
return 0;
}