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.  
  12. mutex mutex_block = M_INI;
  13.  
  14. int main(void)
  15. {
  16. printf("%d", mutex.closed);
  17. return 0;
  18. }
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:12: warning: excess elements in struct initializer
prog.c:12: warning: (near initialization for ‘mutex_block’)
prog.c: In function ‘main’:
prog.c:16: error: expected expression before ‘mutex’
stdout
Standard output is empty