1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

add missing cfns

This commit is contained in:
Unknown User
2019-11-25 02:35:41 +01:00
committed by Alexander Medvednikov
parent 5794594e19
commit 268a6dc6d9
4 changed files with 18 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ fn C.ftell(fp voidptr) int
fn C.getenv(byteptr) byteptr
fn C.sigaction(int, voidptr, int)
fn C.GetLastError() u32
// read_bytes reads an amount of bytes from the beginning of the file
pub fn (f File) read_bytes(size int) []byte {

View File

@@ -130,7 +130,7 @@ pub fn dir_exists(path string) bool {
return false
}
fn C.CreateDirectory(byteptr, int) bool
// mkdir creates a new directory with the specified path.
pub fn mkdir(path string) ?bool {