Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #17238

strcpy (s, "ABC);

From gdotone@gmail.com
Newsgroups comp.lang.c++
Subject strcpy (s, "ABC);
Date 2012-07-24 17:12 -0700
Organization http://groups.google.com
Message-ID <047c4d98-16ed-4acb-aee3-bcb9cc256ee1@googlegroups.com> (permalink)

Show all headers | View raw


this code sample is taken from "A Book on C"

char s[100];

strcpy (s, "ABC");

...

the compiler issues a warning. Implicitly declaring C library function 'strcpy' with type 'char*(char *,const char *)'

Why does the compiler issue this warning, what does it mean, and what is the fix? compiler is LLVM 3.1


Back to comp.lang.c++ | Previous | NextNext in thread | Find similar


Thread

strcpy (s, "ABC); gdotone@gmail.com - 2012-07-24 17:12 -0700
  [OT] Re: strcpy (s, "ABC); Paavo Helde <myfirstname@osa.pri.ee> - 2012-07-25 01:35 -0500
    Re: [OT] Re: strcpy (s, "ABC); Juha Nieminen <nospam@thanks.invalid> - 2012-07-25 09:55 +0000
      Re: [OT] Re: strcpy (s, "ABC); Paavo Helde <myfirstname@osa.pri.ee> - 2012-07-25 15:20 -0500
      Re: [OT] Re: strcpy (s, "ABC); Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-07-25 21:16 +0000
        Re: [OT] Re: strcpy (s, "ABC); Juha Nieminen <nospam@thanks.invalid> - 2012-07-26 05:19 +0000
          Re: [OT] Re: strcpy (s, "ABC); Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-07-26 09:30 +0000
  Re: strcpy (s, "ABC); Zoltan Juhasz <zoltan.juhasz@gmail.com> - 2012-07-25 07:28 -0700
  Re: strcpy (s, "ABC); Varun Tewari <tewari.varun@gmail.com> - 2012-07-25 10:04 -0700

csiph-web