fork(1) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main( void )
  5. {
  6. if(0) // 落ちる
  7. {
  8. int ret = strlen(0);
  9. printf( "%d\n", ret );
  10. }
  11. if(1) // 落ちない
  12. {
  13. int ret = strcmp( 0, 0 );
  14. printf( "%d\n", ret );
  15. }
  16. if(0) // 落ちる
  17. {
  18. int ret = strcmp( "", 0 );
  19. printf( "%d\n", ret );
  20. }
  21. if(0) // 落ちる
  22. {
  23. int ret = strcmp( 0, "" );
  24. printf( "%d\n", ret );
  25. }
  26. return 0;
  27. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
0