Non-Portable pointer assignment?

Timo Suhonen suhonen at kunto.jyu.fi
Wed Jun 5 20:55:36 AEST 1991


lion at dat1hb.north.de (Daniel Tietze) writes:

   Try q=strchr(p,"x"); , this should work. If I'm not mistaken, TC uses
   'x' to denote a string and "x" to denote a char.

Sorry, you are mistaken. 'x' is a single char and "x" is a string.

--
Timo                 "I am logged in, therefore I am"                 Suhonen
suhonen at jyu.fi suhonen at euler.jyu.fi suhonen at kunto.jyu.fi suhonen at nic.funet.fi
   Opinions(?) are mine (if not stolen), NOT those of Univ. of Jyvaskyla.



More information about the Comp.lang.c mailing list