🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.c
Article #657

標準ライブラリー関数の定義はどこに ?

#657
From: sp4049tk
Date: Sat, 28 Mar 1998 00:00
32 lines
1672 bytes
プログラミング言語C(301page)によると、
> 標準ライブラリはC言語固有の一部分ではないが、
> 標準Cをサポートする環境では、
> このライブラリの関数宣言および型やマクロの定義がユーザに提供される。
> 
とあります。
えっ関数は宣言しかないの?と思ったので、
標準ライブラリのソースファイルを見にいくと、
確かに関数の宣言はあっても関数の定義はどこにもありませんでした。
また、すべての関数の宣言はextern宣言になっていました。

これらの関数の定義はどこにあるのでしょうか?

田中

<ctype.h> のなかの一部分を一応つけときます。

> extern int isalnum(int c);
> extern int isalpha(int c);
> extern int iscntrl(int c);
> extern int isdigit(int c);
> extern int isgraph(int c);
> extern int islower(int c);
> extern int isprint(int c);
> extern int ispunct(int c);
> extern int isspace(int c);
> extern int isupper(int c);
> extern int isxdigit(int c);
> extern int tolower(int c);
> extern int toupper(int c);
> 
Technical Details
Message-ID: <sp4049tk.98Mar280217@kisokou10.ex.ecip.osaka-u.ac.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 106434,419345b2de002f4a,start
X-Google-Attributes: gid106434,public
From: sp4049tk@ex.ecip.osaka-u.ac.jp
Subject: 標準ライブラリー関数の定義はどこに ?
Date: 1998/03/28
Message-ID: <sp4049tk.98Mar280217@kisokou10.ex.ecip.osaka-u.ac.jp>
X-Deja-AN: 338268811
Mime-Version: 1.0
Reply-To: sp4049tk@ex.ecip.osaka-u.ac.jp
Content-Type: text/plain; charset=ISO-2022-JP
Organization: Education Center for Information Processing, Osaka University, JAPAN
NNTP-Posting-User: sp4049tk (tanaka kurando)
Newsgroups: fj.lang.c