undefined reference

When i executed a program in C,i got this error:
undefined reference to `strupr’ collect2: ld returned 1 exit status.
http://www.codechef.com/viewsolution/1966014
why is this error ?
is strupr() not available in string.h library ?
If so, what are the other string functions that are not available in the string.h library ?

1 Like

The functions available in the string.h library are given here. Functions like strupr, strlwr, strrev, which are available in ANSI C (Turbo C/C++) are not available in standard C (gcc).

2 Likes

What should i do in such case?

Thank you so much for the information.:slight_smile: