Ad
  • Custom User Avatar

    Don't forget the spoiler flag, please.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This translation was done when I had just started translating to C. I can't recall if C18 was available then or only 3.6. When I became aware of C18 I began translating with that as my standard. So, seeing what's up with this kata suggests I go check out my other old translations as I have with this one. Today I gave this translation the royal treatment: by adding the NULL check you mentioned, providing better feedback for failed code, and (of course) eliminating all of those 32 warnings.

  • Custom User Avatar

    You mean compilation warnings ?
    Other than a shitton of warnings, kata works fine in C.

  • Custom User Avatar

    Great point, I swing languages very often and some don't have that notation so that betrayed me here

  • Custom User Avatar

    In my defence, if the Kata really required this then the Kata test code should have enforced it.