diff options
author | Christopher Faylor <me@cgf.cx> | 2003-10-14 21:41:30 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-10-14 21:41:30 +0400 |
commit | 31271d5cb495ff24aa1333695b5b01702201b075 (patch) | |
tree | 8370d93ce648e1c75cec0afcb7b80327ccfc85a3 /newlib | |
parent | db3137ccb5d3c7499a665d17abf84cf523146cbf (diff) |
* libc/time/clock.c: Clarify documentation of return value when no measurement
is available.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/time/clock.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4f0afc92d..10880bb9f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-10-14 Christopher Faylor <cgf@redhat.com> + + * libc/time/clock.c: Clarify documentation of return value when no + measurement is available. + 2003-09-29 Ian Lance Taylor <ian@wasabisystems.com> * libm/configure.in: Check libm_machine_dir, not machine_dir. diff --git a/newlib/libc/time/clock.c b/newlib/libc/time/clock.c index b15915d6a..64cf438fb 100644 --- a/newlib/libc/time/clock.c +++ b/newlib/libc/time/clock.c @@ -41,7 +41,7 @@ into seconds, divide by the macro <<CLOCKS_PER_SEC>>. RETURNS The amount of processor time used so far by your program, in units defined by the machine-dependent macro <<CLOCKS_PER_SEC>>. If no -measurement is available, the result is <<-1>>. +measurement is available, the result is (clock_t)<<-1>>. PORTABILITY ANSI C requires <<clock>> and <<CLOCKS_PER_SEC>>. |