Ad
  • Default User Avatar

    "*stringPtr++"

    Why are you dereferencing the pointer in the for loop when you want just to increment it?

  • Default User Avatar

    C:

    • the initial code is missing several headers
    • the typedef of an incomplete type is not done properly:
    typedef struct {} Dinglemouse;
    

    is not standard C (empty structures are forbidden). The correct way to refer to an incomplete type is by virtue of a forward declaration:

    struct Dinglemouse;
    typedef struct Dinglemouse Dinglemouse;
    

    fork fixing both

  • Default User Avatar

    How is this debugging? The code is completely incorrect and simply does something else.