News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

An unexpected warnning returned by codeblocks

Started by wanggaoteng, October 13, 2017, 09:36:30 AM

Previous topic - Next topic

wanggaoteng

Hi, when i using codeblocks to compile the following code, a warnning appeared, i have included string.h in the file, why dose codeblocks returns the warnning after compiling?


#include "stdio.h"
#include "string.h"

int main()
{
    char c[]="AAA";
    strlwr(c);
    printf("%s\n",c);
    return 0;
}


stahta01

Code::Blocks is returning the Compiler Warning from the Compiler!

Please read the rules  http://forums.next.codeblocks.org/index.php/topic,9996.0.html
And, then, learn about the compiler you are using; ask for compiler support elsewhere!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

wanggaoteng

Quote from: stahta01 on October 13, 2017, 09:53:40 AM
Code::Blocks is returning the Compiler Warning from the Compiler!

Please read the rules  http://forums.next.codeblocks.org/index.php/topic,9996.0.html
And, then, learn about the compiler you are using; ask for compiler support elsewhere!

Tim S.
Thanks!