Ad
  • Custom User Avatar

    I don't know sorry I only use that on Unix system. =/ I didn't try to port this to non-Unix systems.

  • Custom User Avatar

    Why is this not portable to non-Unix systems? For example, instead of your custom str, which uses Unix syscalls, try using the standard prinf.

  • Custom User Avatar

    Oh ok, thanks' sorry i didn't understand that. Thanks to you :)! Now it's ok for the identation, it was my fault, i copy/paste my bitbucket :P

  • Custom User Avatar

    I don't know C but I'm sure someone else would love to help you out. I was just saying something because the indentation in the code looked like it was off: ie:

    int		find(char *name, char *file)
    

    instead of just

    int find(char *name, char *file)
    

    so I wanted to make sure that the site didn't have a bug. Thanks for posting :)

  • Custom User Avatar

    I want to optimise this and make it better ^^' that's all, if you can help me to do that =).

  • Custom User Avatar

    What happened with the formatting? Was it a copy paste issue or did Codewars somehow mess it up?