Create a file.
int __fastcall__ creat (const char* name, unsigned mode);
creatcreates a new file and returns the file descriptor associated with it. On error, -1 is returned and an error code is stored in
creatis identical to calling
O_WRONLY | O_CREAT | O_TRUNC.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- See also