X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fwrite.c;h=21479080f40dff7550ee15d7d2d349f85cdf884e;hb=f408c1fd633015089d2a0fc6bc31c9f61eeae0a9;hp=67c833f6b9647af82acbe9827c5b0ec56ff3ce71;hpb=f93d55176e4db9edfb1840054169003bcca4d1fb;p=pdclib 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 */