Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!munnari.oz.au!csc!ccadfa!usage!basser!nswitgould!fidogate From: jon_hogan-doran%713.600@fidogate.fido.oz (Jon Hogan-doran) Newsgroups: comp.lang.c Subject: RE: TO C OR NOT TO *C Message-ID: <16107@nswitgould.cs.uts.oz> Date: 10 Oct 89 19:07:08 GMT Sender: fido@nswitgould.cs.uts.oz Organization: A Fidonet node, gated through nswitgould.oz Lines: 53 Original to: all Hmm. While reading through my Microsoft C Manual, under the stdio section , it said (something like this) that getc(fd) returned an int value .. and yet later on he gave an example (something like this): char ch; ch=getc(ttyd); ...... Being only a self-taught Hacker [TRAD] of C-Source, i've never quit understanded, or new, what happened in classes like this; and what C does. I also wondered what happened when: e.g char ch, int i, unsigned int uni, char *getprt(); (returns a pointer to the char) int getint(); E.G 1: i=getprt E.G 2: ch=getprt Also.. if i have an int value, does : this work: uni=(unsigned)(i) or (unsigned)i (I'm not worries about the syntax - only the result !) Also : char *chprt no later on does ... chprt=(some func that returns a pointer) ^-| Does this mean "char *chprt" or "char chptr" if it is: "char *chprt" then does *chprt=(some func that returns a pointer) ^-| Does this mean "char *chprt" here or "char **chprt" ETC... ETC... Now if you know the ANSWERS to these problems pleas reply !!! 1. No "I think that its...." - Thinks are know good - I want the whole truth and nothing but the TRUTH" yr. sincrerly [JON] Hogan-doran Hacked [TRAD] --- TMail v1.12b * Origin: Prophet TBBS - First TBBS in Australia (3:713/600)