Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!elroy.jpl.nasa.gov!ames!mindcraft.com!karish From: karish@mindcraft.com (Chuck Karish) Newsgroups: comp.unix.misc Subject: Re: How do I get a list of UNIX C functions? Summary: lint library source Message-ID: <662300625.2796@mindcraft.com> Date: 27 Dec 90 12:23:44 GMT References: <1990Dec26.055716.11975@news.cs.indiana.edu> <1990Dec26.065038.16148@maverick.ksu.ksu.edu> Organization: Mindcraft, Inc. Lines: 21 In article <1990Dec26.065038.16148@maverick.ksu.ksu.edu> tar@math.ksu.edu (Tim Ramsey) writes: >anlhille@rose.ucs.indiana.edu (Joseph Hillenburg) writes: > >>I know I can type 'man ' but how do I get just the huge list of >>C functions? > >On most UN*X systems, "ar t /lib/libc.a" will give you a list of all the >functions in the standard C library. "ar t" gives a list of the objects in libc.a. Any of these may contain several functions, and the name of the object is not necessarily the same as that of any of the functions it contains. "nm" is a better bet. I prefer to look at the lint library sources (/usr/lib/llib-l*.c or /usr/lib/lint/*.c or something similar). This provides the calling conventions, too. -- Chuck Karish karish@mindcraft.com Mindcraft, Inc. (415) 323-9000