PATCH: slight clarification for clock man page

Christopher Faylor cgf@redhat.com
Wed Oct 15 00:41:00 GMT 2003


Committed as obvious.

cgf

2003-10-14  Christopher Faylor  <cgf@redhat.com>

	* libc/time/clock.c: Clarify documentation of return value when no
	measurement is available.

Index: libc/time/clock.c
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/time/clock.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 clock.c
--- libc/time/clock.c	17 Feb 2000 19:39:51 -0000	1.1.1.1
+++ libc/time/clock.c	14 Oct 2003 17:39:34 -0000
@@ -41,7 +41,7 @@ into seconds, divide by the macro <<CLOC
 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>>.



More information about the Newlib mailing list