From: Jim Meyering Date: Sat, 15 Feb 2003 09:59:27 +0000 (+0000) Subject: (main) [DEBUG]: New function. X-Git-Tag: v4.5.8~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b62137426cc3d68ece807b3ffc22635aa5fef77;p=thirdparty%2Fcoreutils.git (main) [DEBUG]: New function. --- diff --git a/lib/physmem.c b/lib/physmem.c index 1706e6c390..f9f72b87ea 100644 --- a/lib/physmem.c +++ b/lib/physmem.c @@ -136,3 +136,24 @@ physmem_available (void) /* Guess 25% of physical memory. */ return physmem_total () / 4; } + + +#if DEBUG + +# include +# include + +int +main () +{ + printf ("%12.f %12.f\n", physmem_total (), physmem_available ()); + exit (0); +} + +#endif /* DEBUG */ + +/* +Local Variables: +compile-command: "gcc -DDEBUG -DHAVE_CONFIG_H -I.. -g -O -Wall -W physmem.c" +End: +*/