X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstring.psi;fp=psi.d%2Fstring.psi;h=5ea4db4932c223abf33ee1c22929d9ec743edc02;hp=0000000000000000000000000000000000000000;hb=974c9580535a1668dd6eed9992d582ebcc29b27a;hpb=ff9d77817b7feffd43dacd8e5b1d5f644a35ae7d diff --git a/psi.d/string.psi b/psi.d/string.psi new file mode 100644 index 0000000..5ea4db4 --- /dev/null +++ b/psi.d/string.psi @@ -0,0 +1,5 @@ +extern char *strerror(int errno); +function psi\strerror(int $errno) : string { + let errno = intval($errno); + return to_string(strerror); +}