This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: slight clarification for clock man page


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>>.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]