[Courses] [C]Warnings? (Spoiler on Ex 7-1)

Laura Bowser lbowser at andrew.cmu.edu
Wed Mar 6 22:19:59 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I know I'm not participating in the C class, but I can answer some of your 
question



>
>eng_to_metr.c: In function `main':
>eng_to_metr.c:30: warning: char format, different type arg (arg 4)
>eng_to_metr.c:34: warning: implicit declaration of function `strcmp'
>eng_to_metr.c:36: warning: implicit declaration of function `strcpy'
>

lines 34 and 35 is from you not including string.h where those functions are 
declared
#include <string.h> at the beginning of your file

I *think* that you're having problems passing in a pointer to a pointer with 
&english in sscanf.  english is already a pointer because it's an array 
variable

Hope this helped,
Laura

- -- 
Public Key available at 
http://callista.dyndns.org/~elwing/lbowser.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8hs5PDxAypHN+smoRArzpAJ423WCZ2n0EV+PN0rJhjUkK1VIHugCfeajT
6DeVvyppa1TlDQAZCZ8T/5c=
=0iDN
-----END PGP SIGNATURE-----




More information about the Courses mailing list