File tree Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ A slightly modified version of this file and a discussion of the
11
11
workings can be found in the book "Software Solutions in C" by
12
12
Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
13
13
14
+ $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.3 1997/04/10 20:51:13 scrappy Exp $
14
15
*/
15
16
16
17
#include <stdio.h>
@@ -271,32 +272,3 @@ cash_words_out(long value)
271
272
* buf = toupper (* buf );
272
273
return (buf );
273
274
}
274
-
275
- #include <stdlib.h>
276
-
277
- #ifdef TEST_MAIN
278
- int
279
- main (void )
280
- {
281
- char p [64 ], * q ;
282
- long v ; /* the long value representing the amount */
283
- int d ; /* number of decimal places - default 2 */
284
-
285
- while (fgets (p , sizeof (p ), stdin ) != NULL )
286
- {
287
- if ((q = strchr (p , '\n' )) != NULL )
288
- * q = 0 ;
289
-
290
- for (q = p ; * q && !isspace (* q ); q ++ )
291
- ;
292
-
293
- v = cash_in (p );
294
- d = * q ? atoi (q ) : 2 ;
295
-
296
- printf ("%12.12s %10ld " , p , v );
297
- printf ("%12s %s\n" , cash_out (v ), cash_words_out (v ));
298
- }
299
-
300
- return (0 );
301
- }
302
- #endif /* TEST_MAIN */
You can’t perform that action at this time.
0 commit comments