first boilerplate

This commit is contained in:
Tonton Th
2026-05-27 06:45:41 +02:00
parent 57242eaec0
commit e893a6d068
11 changed files with 101 additions and 35 deletions

23
Code/mcp.c Normal file
View File

@@ -0,0 +1,23 @@
/*
* MYRYS ROVER
* MASTER CONTROL PROGRAM
*/
#include <stdio.h>
#include <unistd.h>
#include "protocol.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
int main(int argc, char *argv[])
{
int foo;
fprintf(stderr, "******* hello from Myrys Rover MCP\n");
fprintf(stderr, "\tyour pid is %ld\n", (long)getpid());
foo = send_a_ping(0, "wtf bro ?", 42);
fprintf(stderr, "\tpong return value is $%06x\n", foo);
return 0;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */