From 3b526f89b596f308b3a03e0dc0b00ed4673dc449 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 24 Aug 2000 09:30:58 +0000 Subject: Update. Move inclusion of test-skeleton to front to have prototype for add_temp_file. --- libio/tst_putwc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libio') diff --git a/libio/tst_putwc.c b/libio/tst_putwc.c index 60bb232..a78dfec 100644 --- a/libio/tst_putwc.c +++ b/libio/tst_putwc.c @@ -26,8 +26,13 @@ static const char outname[] = OBJPFX "tst_putwc.temp"; - +/* Prototype for our test function. */ +int do_test (void); #define TEST_FUNCTION do_test () + +/* This defines the `main' function and some more. */ +#include + int do_test (void) { @@ -37,6 +42,8 @@ do_test (void) FILE *fp; int res = 0; + add_temp_file (outname); + fp = fopen (outname, "w+"); if (fp == NULL) error (EXIT_FAILURE, errno, "cannot open temporary file"); @@ -113,6 +120,3 @@ do_test (void) return res; } - - -#include "../test-skeleton.c" -- cgit v1.1