mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
deprecated attribute for procedure declarations
This commit is contained in:
@@ -877,6 +877,7 @@ __cstring_len :: proc "contextless" (s: cstring) -> int {
|
||||
}
|
||||
|
||||
__cstring_to_string :: proc "contextless" (s: cstring) -> string {
|
||||
if s == nil do return "";
|
||||
ptr := (^byte)(s);
|
||||
n := __cstring_len(s);
|
||||
return transmute(string)raw.String{ptr, n};
|
||||
|
||||
Reference in New Issue
Block a user