X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fwrite.c;h=21479080f40dff7550ee15d7d2d349f85cdf884e;hp=67c833f6b9647af82acbe9827c5b0ec56ff3ce71;hb=38c392a0b8812ee3d1a60b7bda4540a306484e7c;hpb=1c79fa5a475e99eade951e60207ca3544328d42c diff --git a/platform/example/functions/_PDCLIB/write.c b/platform/example/functions/_PDCLIB/write.c index 67c833f..2147908 100644 --- a/platform/example/functions/_PDCLIB/write.c +++ b/platform/example/functions/_PDCLIB/write.c @@ -58,7 +58,7 @@ int main( void ) strcpy( buffer, "Test output\n" ); /* Writing string to file */ TESTCASE( ( fd = open( "testfile", O_CREAT | O_TRUNC | O_WRONLY, S_IRWXU ) ) != -1 ); - struct _PDCLIB_file_t file = { fd, { 0, 0 }, buffer, BUFSIZ, 12, 0, 0, NULL }; + struct _PDCLIB_file_t file = { fd, { 0, 0 }, buffer, BUFSIZ, 12, 0, 0, NULL, NULL }; TESTCASE( _PDCLIB_write( &file, file.buffer, 12 ) == 12 ); TESTCASE( close( file.handle ) != -1 ); /* Reading file back in */