fork(9) download
  1. #include<string.h>
  2. #include<stdio.h>
  3. typedef struct {
  4. char a;
  5. int b;
  6. }foo;
  7.  
  8. int main(){
  9.  
  10. foo m = {0,0};
  11. foo n = {0,0};
  12. printf("%d",memcmp(&m,&n,sizeof(foo)));
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 1720KB
stdin
Standard input is empty
stdout
-1