mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-12-22 05:12:40 +00:00
Added mauricetmeyer.c to code samples
This commit is contained in:
parent
e5319a6472
commit
15d1e89dcb
40
code/mauricetmeyer.c
Normal file
40
code/mauricetmeyer.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user