3030# endif
3131
3232extern "c"
33- declare function rename ( byval as zstring ptr, byval as zstring ptr) as long
34- declare function fopen ( byval as zstring ptr, byval as zstring ptr) as FILE ptr
35- declare function freopen ( byval as zstring ptr, byval as zstring ptr, byval as FILE ptr) as FILE ptr
33+ declare function rename ( byval as const zstring ptr, byval as const zstring ptr) as long
34+ declare function fopen ( byval as const zstring ptr, byval as const zstring ptr) as FILE ptr
35+ declare function freopen ( byval as const zstring ptr, byval as const zstring ptr, byval as FILE ptr) as FILE ptr
3636declare function fflush ( byval as FILE ptr) as long
3737declare function fclose ( byval as FILE ptr) as long
38- declare function remove ( byval as zstring ptr) as long
38+ declare function remove ( byval as const zstring ptr) as long
3939declare function tmpfile () as FILE ptr
4040declare function tmpnam ( byval as zstring ptr) as zstring ptr
4141declare function tempnam ( byval as zstring ptr, byval as zstring ptr) as zstring ptr
4242declare function setvbuf ( byval as FILE ptr, byval as zstring ptr, byval as long , byval as size_t) as long
4343declare sub setbuf ( byval as FILE ptr, byval as zstring ptr)
44- declare function fprintf ( byval as FILE ptr, byval as zstring ptr, ...) as long
45- declare function printf ( byval as zstring ptr, ...) as long
46- declare function sprintf ( byval as zstring ptr, byval as zstring ptr, ...) as long
47- declare function vfprintf ( byval as FILE ptr, byval as zstring ptr, byval as va_list) as long
48- declare function vprintf ( byval as zstring ptr, byval as va_list) as long
49- declare function vsprintf ( byval as zstring ptr, byval as zstring ptr, byval as va_list) as long
50- declare function vscanf ( byval as zstring ptr, byval as va_list) as long
51- declare function vfscanf ( byval as FILE ptr, byval as zstring ptr, byval as va_list) as long
52- declare function vsscanf ( byval as zstring ptr, byval as zstring ptr, byval as va_list) as long
53- declare function fscanf ( byval as FILE ptr, byval as zstring ptr, ...) as long
54- declare function scanf ( byval as zstring ptr, ...) as long
55- declare function sscanf ( byval as zstring ptr, byval as zstring ptr, ...) as long
44+ declare function fprintf ( byval as FILE ptr, byval as const zstring ptr, ...) as long
45+ declare function printf ( byval as const zstring ptr, ...) as long
46+ declare function sprintf ( byval as zstring ptr, byval as const zstring ptr, ...) as long
47+ declare function vfprintf ( byval as FILE ptr, byval as const zstring ptr, byval as va_list) as long
48+ declare function vprintf ( byval as const zstring ptr, byval as va_list) as long
49+ declare function vsprintf ( byval as zstring ptr, byval as const zstring ptr, byval as va_list) as long
50+ declare function vscanf ( byval as const zstring ptr, byval as va_list) as long
51+ declare function vfscanf ( byval as FILE ptr, byval as const zstring ptr, byval as va_list) as long
52+ declare function vsscanf ( byval as const zstring ptr, byval as const zstring ptr, byval as va_list) as long
53+ declare function fscanf ( byval as FILE ptr, byval as const zstring ptr, ...) as long
54+ declare function scanf ( byval as const zstring ptr, ...) as long
55+ declare function sscanf ( byval as const zstring ptr, byval as const zstring ptr, ...) as long
5656declare function fgetc ( byval as FILE ptr) as long
5757declare function fgets ( byval as zstring ptr, byval as long , byval as FILE ptr) as zstring ptr
5858declare function fputc ( byval as long , byval as FILE ptr) as long
59- declare function fputs ( byval as zstring ptr, byval as FILE ptr) as long
59+ declare function fputs ( byval as const zstring ptr, byval as FILE ptr) as long
6060declare function getc ( byval as FILE ptr) as long
6161declare function getchar () as long
6262declare function gets ( byval as zstring ptr) as zstring ptr
6363declare function putc ( byval as long , byval as FILE ptr) as long
6464declare function putchar ( byval as long ) as long
65- declare function puts ( byval as zstring ptr) as long
65+ declare function puts ( byval as const zstring ptr) as long
6666declare function ungetc ( byval as long , byval as FILE ptr) as long
6767declare function fread ( byval as any ptr, byval as size_t, byval as size_t, byval as FILE ptr) as size_t
68- declare function fwrite ( byval as any ptr, byval as size_t, byval as size_t, byval as FILE ptr) as size_t
68+ declare function fwrite ( byval as const any ptr, byval as size_t, byval as size_t, byval as FILE ptr) as size_t
6969declare function fseek ( byval as FILE ptr, byval as clong, byval as long ) as long
7070declare function ftell ( byval as FILE ptr) as clong
7171declare sub rewind ( byval as FILE ptr)
@@ -74,31 +74,31 @@ declare function fsetpos (byval as FILE ptr, byval as fpos_t ptr) as long
7474declare sub clearerr ( byval as FILE ptr)
7575declare function feof ( byval as FILE ptr) as long
7676declare function ferror ( byval as FILE ptr) as long
77- declare sub perror ( byval as zstring ptr)
78- declare function fwprintf ( byval as FILE ptr, byval as wchar_t ptr, ...) as long
79- declare function wprintf ( byval as wchar_t ptr, ...) as long
80- declare function swprintf ( byval as wchar_t ptr, byval as wchar_t ptr, ...) as long
81- declare function vfwprintf ( byval as FILE ptr, byval as wchar_t ptr, byval as va_list) as long
82- declare function vwprintf ( byval as wchar_t ptr, byval as va_list) as long
83- declare function vswprintf ( byval as wchar_t ptr, byval as wchar_t ptr, byval as va_list) as long
84- declare function fwscanf ( byval as FILE ptr, byval as wchar_t ptr, ...) as long
85- declare function wscanf ( byval as wchar_t ptr, ...) as long
86- declare function swscanf ( byval as wchar_t ptr, byval as wchar_t ptr, ...) as long
77+ declare sub perror ( byval as const zstring ptr)
78+ declare function fwprintf ( byval as FILE ptr, byval as const wchar_t ptr, ...) as long
79+ declare function wprintf ( byval as const wchar_t ptr, ...) as long
80+ declare function swprintf ( byval as wchar_t ptr, byval as const wchar_t ptr, ...) as long
81+ declare function vfwprintf ( byval as FILE ptr, byval as const wchar_t ptr, byval as va_list) as long
82+ declare function vwprintf ( byval as const wchar_t ptr, byval as va_list) as long
83+ declare function vswprintf ( byval as wchar_t ptr, byval as const wchar_t ptr, byval as va_list) as long
84+ declare function fwscanf ( byval as FILE ptr, byval as const wchar_t ptr, ...) as long
85+ declare function wscanf ( byval as const wchar_t ptr, ...) as long
86+ declare function swscanf ( byval as const wchar_t ptr, byval as const wchar_t ptr, ...) as long
8787declare function fgetwc ( byval as FILE ptr) as wint_t
8888declare function fputwc ( byval as wchar_t, byval as FILE ptr) as wint_t
8989declare function ungetwc ( byval as wchar_t, byval as FILE ptr) as wint_t
9090declare function fgetws ( byval as wchar_t ptr, byval as long , byval as FILE ptr) as wchar_t ptr
91- declare function fputws ( byval as wchar_t ptr, byval as FILE ptr) as long
91+ declare function fputws ( byval as const wchar_t ptr, byval as FILE ptr) as long
9292declare function getwc ( byval as FILE ptr) as wint_t
9393declare function getwchar () as wint_t
9494declare function putwc ( byval as wint_t, byval as FILE ptr) as wint_t
9595declare function putwchar ( byval as wint_t) as wint_t
96- declare function snwprintf ( byval s as wchar_t ptr, byval n as size_t, byval format as wchar_t ptr, ...) as long
97- declare function vsnwprintf ( byval s as wchar_t ptr, byval n as size_t, byval format as wchar_t ptr, byval arg as va_list) as long
98- declare function vwscanf ( byval as wchar_t ptr, byval as va_list) as long
99- declare function vfwscanf ( byval as FILE ptr, byval as wchar_t ptr, byval as va_list) as long
100- declare function vswscanf ( byval as wchar_t ptr, byval as wchar_t ptr, byval as va_list) as long
101- declare function wpopen ( byval as wchar_t ptr, byval as wchar_t ptr) as FILE ptr
96+ declare function snwprintf ( byval s as wchar_t ptr, byval n as size_t, byval format as const wchar_t ptr, ...) as long
97+ declare function vsnwprintf ( byval s as wchar_t ptr, byval n as size_t, byval format as const wchar_t ptr, byval arg as va_list) as long
98+ declare function vwscanf ( byval as const wchar_t ptr, byval as va_list) as long
99+ declare function vfwscanf ( byval as FILE ptr, byval as const wchar_t ptr, byval as va_list) as long
100+ declare function vswscanf ( byval as const wchar_t ptr, byval as const wchar_t ptr, byval as va_list) as long
101+ declare function wpopen ( byval as const wchar_t ptr, byval as const wchar_t ptr) as FILE ptr
102102end extern
103103
104104# endif
0 commit comments