Ad
  • Default User Avatar

    it's not about allocation, it's about casting. strlen() returns a size_t value, comperable to unsigned long. so, just change the type of i in your for loop and that should do it