|
-
Nov 15th, 2001, 09:32 PM
#1
Thread Starter
Addicted Member
Listing of functions (Linux Related)
Ok, here is my problem.
I am reading an E-Book on how to program in C, and it has been great up till now, i am nearing the end and it has started to talk about functions that are not a part of the ANSI Standard library.
Now, i know that there is functions in the libc library that do the same thing as these functions but I am not sure how to find them.
Here is an example of what i am talking about....
In the book it says there is a function that converts Uppercase letters to Lowercase letters, it also says that this is not a part of the ANSI standard, the function that it gave in the book was "strlwr()" (it says that this function is included in the Symantec, Microsoft, and Borland c Libs, which is all for windows, and i am programing for linux).
I got on an IRC chan and asked someone and they were able to tell me that a function called "tolower()" existed in the libc library so i tried that and it worked (cause i have the libc library installed).
Now the question that i have is,
1. Is there a listing somewhere of all the functions (in the libc library) and what they do??
2. If not, how can i find out if a function exists, if i know what it does, but dont know the name of it??
(For No2. i have been told to do "man -k <keywords>" which works, but if i do "man -k reverse string" i get a listing of everything in the man that has thoes two words in it... Not very helpful)
Any help on this matter would be much appreciated.
-|- Hurgh -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Nov 15th, 2001, 10:38 PM
#2
PowerPoster
If you want some reference on the functions in main libraries than check out this website:
www.cplusplus.com
-
Nov 15th, 2001, 11:18 PM
#3
-
Nov 15th, 2001, 11:31 PM
#4
Thread Starter
Addicted Member
Thanks abdul for the reply, but it did not realy help me much because i dont need a listing of functions in the standard library, i need a listing of functions in other libraries (more to the point, the libc library).
Anyone else with info about thei if you could post that would be great.
Also just one last thing just incase i did not make it clear in the first post, this is only for C, i am not interested in C++ at this point in time.
Thanks
-|- Hurgh -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Nov 16th, 2001, 12:20 PM
#5
Thread Starter
Addicted Member
Jim, thanks for that information,
i knew bout the man page and that, but before i can use the function i have to know what the function is, the way u say to use the man page is good, but ONLY IF i already know what the function is. The problem is I DONT KNOW WHAT THE NAME OF THE FUNCTION IS, i only know what it does, so how do i find the function name then??
These 40 i/o functions and 30 math functions in the standard library, where can i get the docs for them (not the man pages, just a list of all the functions and what they do), so i can print it out and look it up when i need to.
Thanks again
-|- Hurgh -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Nov 17th, 2001, 02:48 AM
#6
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
This seems to be a good reference to the standard library, sorted by header file. It is in printable format (plain text).
And libc IS the standard library.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 17th, 2001, 04:03 AM
#7
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 20th, 2001, 05:15 PM
#8
Thread Starter
Addicted Member
Just thought i would post what i found out bout my question (see first post)
I got this from another forum and it is excatly what i wanted.
all you do is (in linux):
open a terminal (if you are in X)
and type:
info glibc <----- That will open up the info pages, with list of all functions, and explinations on what the functions do, how to use them, and a whole heap more information.
Thanks all who posted here, and i hope this info helps someone else.
-|- Hurgh -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Nov 21st, 2001, 08:52 AM
#9
I'm sure it will help me.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|