<item>POSIX specifies an additional <tt/mode/ argument that may be passed to
open, which is used as the permission mask when a new file is created. While
cc65 allows to pass this argument, it is ignored.
-<item>The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
</itemize>
<tag/Availability/POSIX
<tag/See also/
-;
+;
; Ullrich von Bassewitz, 22.11.2002
;
; FILE* __fastcall__ _fopen (const char* name, const char* mode, FILE* f);
.proc __fopen
sta file
- stx file ; Save f
+ stx file+1 ; Save f
; Get a pointer to the mode string
jmp incsp4
; Mode string successfully parsed. Store the binary mode onto the stack in
-; the same place where the mode string pointer was before. The call open()
+; the same place where the mode string pointer was before. Then call open()
modeok: ldy #$00
txa ; Mode -> A
/* If the standard library search path is not given, use a hardcoded one */
#ifndef CC65_LIB
-#define CC65_LIB "/usr/lib/cc65/lib/";
+#define CC65_LIB "/usr/lib/cc65/lib/"
#endif