fork download
  1. #include <stdio.h>
  2.  
  3. struct mt_blk {
  4. int closed;
  5. thread wQueue;
  6. };
  7.  
  8. typedef struct mt_blk mutex;
  9.  
  10. #define M_INI {0,0}
  11. void close(mutex *m);
  12.  
  13. int main(void)
  14. {
  15. printf("%d", mutex.closed);
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:5: error: expected specifier-qualifier-list before ‘thread’
prog.c: In function ‘main’:
prog.c:15: error: expected expression before ‘mutex’
stdout
Standard output is empty