By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,413 Members | 996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,413 IT Pros & Developers. It's quick & easy.

C Reference page on Linux

P: n/a
Hello! I am new to C programming in Linux. I would like to know is there any
online reference for C langage. For example, length of unsigned long,
precedance of operators, explaination of some keywords. I know there are man
pages for system calls but also want a C reference.

Thanks for answering!
Nov 14 '05 #1
Share this Question
Share on Google+
15 Replies


P: n/a
Vbman / Simon wrote:

Hello! I am new to C programming in Linux. I would like to know
is there any online reference for C langage. For example, length
of unsigned long, precedance of operators, explaination of some
keywords. I know there are man pages for system calls but also
want a C reference.


Linux has nothing to do with it. Google for N869, the last draft
of the C99 standard. It is all there.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 14 '05 #2

P: n/a
* Thus spoke Vbman / Simon <vb***@gbman.com>:

Hallo,
Hello! I am new to C programming in Linux. I would like to know is there any
online reference for C langage.


http://webstore.ansi.org/ansidocstor...EC+9899%2D1999

Wolfgang.
--
"Erfahrungen -- das sind die vernarbten Wunden unserer Dummheit."
-- John Osborne
Nov 14 '05 #3

P: n/a
"CBFalconer" <cb********@yahoo.com> wrote in message
news:3F***************@yahoo.com...
Hello! I am new to C programming in Linux. I would like to know
is there any online reference for C langage. For example, length
of unsigned long, precedance of operators, explaination of some
keywords. I know there are man pages for system calls but also
want a C reference.


Linux has nothing to do with it. Google for N869, the last draft
of the C99 standard. It is all there.

What about this one?
http://www.amazon.co.uk/exec/obidos/...248893-5423827

Especially this line:
"Updates the third edition by integrating new ANSI/ISO standard, C99."
Nov 14 '05 #4

P: n/a

"Serv?Lau" <i@bleat.nospam.com> wrote in message
news:bs**********@news4.tilbu1.nb.home.nl...
"CBFalconer" <cb********@yahoo.com> wrote in message
news:3F***************@yahoo.com...
Hello! I am new to C programming in Linux. I would like to know
is there any online reference for C langage. For example, length
of unsigned long, precedance of operators, explaination of some
keywords. I know there are man pages for system calls but also
want a C reference.
Linux has nothing to do with it. Google for N869, the last draft
of the C99 standard. It is all there.

What about this one?

http://www.amazon.co.uk/exec/obidos/...248893-5423827
Especially this line:
"Updates the third edition by integrating new ANSI/ISO standard, C99."


Thank you! Actually I am asking are there any man pages like 'man
operators', 'man unsigned char' so that I can easily refer to.
In Dos I have the Help of Turbo C. But in Linux I dunno.
Nov 14 '05 #5

P: n/a
Vbman / Simon wrote:
I am new to C programming in Linux.
I would like to know is there any online reference for C language.
for the C computer programming language.
For example, length of unsigned long,
precedence of operators, explanation of some keywords.
I know that there are man pages for system calls
but also want a C reference.


I used Google

http://www.google.com/

to search for

+"online C reference manual"

I found lots of stuff including "C Programming Reference Introduction."

http://www.itee.uq.edu.au/~comp1300/...C_ref/C/c.html

If you are using the GNU C compiler gcc, go to the GNU website:

http://www.gnu.org/

click in the [Manuals Online] button then the [gcc] button
to get to "GCC online documentation"

http://www.gnu.org/software/gcc/onlinedocs/

Subscribe to the gnu.gcc.help newsgroup and ask your question there.

Nov 14 '05 #6

P: n/a

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:3F**************@jpl.nasa.gov...
Vbman / Simon wrote:
I am new to C programming in Linux.
I would like to know is there any online reference for C language.
for the C computer programming language.
For example, length of unsigned long,
precedence of operators, explanation of some keywords.
I know that there are man pages for system calls
but also want a C reference.


I used Google

http://www.google.com/

to search for

+"online C reference manual"

I found lots of stuff including "C Programming Reference Introduction."

http://www.itee.uq.edu.au/~comp1300/...C_ref/C/c.html

If you are using the GNU C compiler gcc, go to the GNU website:

http://www.gnu.org/

click in the [Manuals Online] button then the [gcc] button
to get to "GCC online documentation"

http://www.gnu.org/software/gcc/onlinedocs/

Subscribe to the gnu.gcc.help newsgroup and ask your question there.


Thank you for your reply! I have also visited those sites. May be I have
expressed myself carelessly. Actually I mean by 'online' is like the 'man
pages' or 'F1 help'. In vim, I can 'Shift-K' on 'malloc' to get its help
page. But I can 'Shift-K' on 'external', 'void', '<<' to get the reference.
Nov 14 '05 #7

P: n/a
Vbman / Simon wrote:

Thank you! Actually I am asking are there any man pages like 'man
operators', 'man unsigned char' so that I can easily refer to.
In Dos I have the Help of Turbo C. But in Linux I dunno.


man pages are not defined by the C standard. Try a Linux or Unix
programming group. This group is only for discussion of the C language,
not operating systems, and not specific implementations of C.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Nov 14 '05 #8

P: n/a
In article <3f**********@storm.i-cable.com>,
Vbman / Simon <vb***@gbman.com> wrote:

May be I have
expressed myself carelessly. Actually I mean by 'online' is like the 'man
pages' or 'F1 help'. In vim, I can 'Shift-K' on 'malloc' to get its help
page. But I can 'Shift-K' on 'external', 'void', '<<' to get the reference.


Traditionally, Unix man pages have included man pages for functions
in the C standard library. Therefore it's not unexpected that you
have found a man page for malloc() there. You can also expect to
find man pages for putchar(), strlen(), fopen(), and other C standard
library functions.

Note, however, that "external", "void", "int", "while", etc., are not
functions. They are C language keywords. In the same vein, "<<", "++",
"+=", etc., are not functions. They are C language operators.

Traditionally, Unix man pages do not supply man pages on C language
keywords and operators. To learn about them you will have to read
a C programming manual.

--
Rouben Rostamian
Nov 14 '05 #9

P: n/a
Vbman / Simon wrote:
Hello! I am new to C programming in Linux. I would like to
know is there any online reference for C langage. For example,
length of unsigned long, precedance of operators, explaination
of some keywords. I know there are man pages for system calls
but also want a C reference.


Simon...

There are man pages for standard C library functions (as well as
others). There are not normally man pages to explain C syntax and
operators - for these you'll probably want treeware (my personal
favorite is the 2nd edition of "The C Programming Language"
(K&R2) by Brian W. Kernighan and Dennis M. Ritchie).

If you follow the link in my sig, you can find an ANSI bookstore
link for the C standard document, a precedence table for C
operators, and (amazing coincidence!) a short program to display
the sizes of variable types on your own system (varsize.c)

Welcome to the world C programming!
--
Morris Dovey
West Des Moines, Iowa USA
C links at http://www.iedu.com/c
Read my lips: The apple doesn't fall far from the tree.

Nov 14 '05 #10

P: n/a
Vbman / Simon wrote:
.... snip ...
Thank you for your reply! I have also visited those sites. May be
I have expressed myself carelessly. Actually I mean by 'online' is
like the 'man pages' or 'F1 help'. In vim, I can 'Shift-K' on
'malloc' to get its help page. But I can 'Shift-K' on 'external',
'void', '<<' to get the reference.


The earlier N869 standard reference I gave you is the most
accurate freebie you can find. However, with the info system
installed (via DJGPP or Cygwin if you are using windows, directly
if using Linux) all you need enter is:

info libc alpha whatever

to get the equivalent of man pages on any available function.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #11

P: n/a
ro****@pc18.math.umbc.edu (Rouben Rostamian) wrote in
news:bs**********@pc18.math.umbc.edu:
Note, however, that "external", ....
are C language keywords.


What the is 'external'?
--
A. Sinan Unur
1u**@llenroc.ude (reverse each component for email address)
Nov 14 '05 #12

P: n/a
A. Sinan Unur wrote:
ro****@pc18.math.umbc.edu (Rouben Rostamian) wrote in
news:bs**********@pc18.math.umbc.edu:

Note, however, that "external", ....
are C language keywords.

What the is 'external'?

Actually, it's 'extern', not 'external'. And you'll find what it means
in any good book about the C language (may I suggest you to get yourself
a copy of the K&R2 ? I'd have answered your question if I was not too
lazy to translate it from french to english !-)

Bruno

Nov 14 '05 #13

P: n/a
Bruno Desthuilliers <bd***********@tsoin-tsoin.free.fr> wrote in
news:3f***********************@news.free.fr:
A. Sinan Unur wrote:
ro****@pc18.math.umbc.edu (Rouben Rostamian) wrote in
news:bs**********@pc18.math.umbc.edu:

Note, however, that "external", ....
are C language keywords.

What the is 'external'?

Actually, it's 'extern', not 'external'.

The point I was trying to make exactly. Unfortunately, the meaning of my
statement may have been slightly blurred by the fact that I failed to
type a four letter word between the 'the' and the 'is'.
--
A. Sinan Unur
1u**@llenroc.ude (reverse each component for email address)
Nov 14 '05 #14

P: n/a
A. Sinan Unur wrote:
Bruno Desthuilliers <bd***********@tsoin-tsoin.free.fr> wrote in
news:3f***********************@news.free.fr:
A. Sinan Unur wrote:
ro****@pc18.math.umbc.edu (Rouben Rostamian) wrote in
news:bs**********@pc18.math.umbc.edu:
Note, however, that "external", ....
are C language keywords.
What the is 'external'?

Actually, it's 'extern', not 'external'.

The point I was trying to make exactly. Unfortunately, the meaning of my
statement may have been slightly blurred by the fact that I failed to
type a four letter word between the 'the' and the 'is'.


Ah, I thought the omission was deliberate. I actually found it wrly amusing
- leaving one's imagination to fill in the gap as one saw fit.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #15

P: n/a
Richard Heathfield <do******@address.co.uk.invalid> wrote in
news:bs**********@sparta.btinternet.com:
A. Sinan Unur wrote:
Bruno Desthuilliers <bd***********@tsoin-tsoin.free.fr> wrote in
news:3f***********************@news.free.fr:
A. Sinan Unur wrote: .... What the is 'external'?
Actually, it's 'extern', not 'external'.

The point I was trying to make exactly. Unfortunately, the meaning of
my statement may have been slightly blurred by the fact that I failed
to type a four letter word between the 'the' and the 'is'.


Ah, I thought the omission was deliberate. I actually found it wrly
amusing - leaving one's imagination to fill in the gap as one saw fit.


Well, let me clarify :)

I originally had a mild four letter word there. Then I thought it did not
really express my reaction but did not want to use profanity either, so I
did not include it, thinking what I meant would have been obvious.
Apparently, it wasn't; hence the explanation.

Sinan.
--
A. Sinan Unur
1u**@llenroc.ude (reverse each component for email address)
Nov 14 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.