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