I'm at a loss of words as to why this won't compile:
char *result = piglatin("Amanda");
but this will (and works fine):
char *result = (char*)piglatin("Amanda");
When the func sig for piglatin() is:
char *piglatin(char *str)
GCC says: " warning: initialization makes pointer from integer without a cast"
Anyone know why this is? I'm either very tired or something strange is going on because the func already returns a char* so not sure why I need cast there. Thanks.