I remember there were some functions for doing this, but I lost my notes on it from last semester.
1) The name of the function that returns the length of a string. Is it strlen? I forgot the syntax for it.
2) If I have a double and wish to convert it to a string, what is the simplest way? I need it to preserve the decimal point 2 two places in the string.
I found ecvt() on google, but I am either confused by it or it won't do exactly what I need.
1) The name of the function that returns the length of a string. Is it strlen? I forgot the syntax for it.
2) If I have a double and wish to convert it to a string, what is the simplest way? I need it to preserve the decimal point 2 two places in the string.
I found ecvt() on google, but I am either confused by it or it won't do exactly what I need.