libamxp  1.4.0
Patterns C Implementation
main.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>

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 59 of file main.c.

59  {
60  char* text = NULL;
61 
62  if(argc > 1) {
63  if(strcmp(argv[1], "crash") == 0) {
64  strcpy(text, "Hallo World");
65  }
66  if(strcmp(argv[1], "wsignal") == 0) {
67  while(true) {
68  sleep(10);
69  }
70  }
71  }
72 
73  return 99;
74 }