fork(2) download
  1. #include <stdio.h>
  2. void func(void* arg)
  3. {
  4. char (*tmp)[16] = arg;
  5. printf("%s\n%s\n", tmp[0], tmp[1]);
  6. }
  7. int main(void) {
  8. char callback_value[2][16] = {"string1", "string2"};
  9. void *callback_context = callback_value;
  10. func(callback_context);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
string1
string2