Hi,
Can anyone tell me how to typecast strlen's size_t return type to int? I'm trying to use it to access an character array (basically a string) by doing like filename[strlent(filename) - 2] but cc keeps giving me a warning about size_t and int conversion.
Thanks!
Can anyone tell me how to typecast strlen's size_t return type to int? I'm trying to use it to access an character array (basically a string) by doing like filename[strlent(filename) - 2] but cc keeps giving me a warning about size_t and int conversion.
Thanks!
