Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
coshcage authored Apr 22, 2024
1 parent 52c2945 commit ad5eb1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sixmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Name: sixmem.c
* Description: SI external memory function.
* Author: cosh.cage#hotmail.com
* File ID: 0714231200H0422240734L00395
* File ID: 0714231200H0422240734L00398
* License: GPLv2.
*/
#include "sixmem.h"
Expand Down Expand Up @@ -52,13 +52,16 @@ void _siReadString(char * buf, FILE * fp)
*/
void _siReadWString(wchar_t * buf, FILE * fp)
{
/*
size_t i = 0;
while ((i < BUFSIZ - 1) && (L'\0' != (*buf = fgetwc(fp))))
{
++buf;
++i;
}
buf[i] = L'\0';
*/
fgetws(buf, BUFSIZ - 1, fp);
}

/* Attention: This Is An Internal Function. No Interface for Library Users.
Expand Down

0 comments on commit ad5eb1b

Please sign in to comment.