[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_from_zbyte_string
From: |
Bruce Korb |
Subject: |
scm_from_zbyte_string |
Date: |
Fri, 16 Nov 2012 16:53:14 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 |
This is insufficient. There are the "to" functions
and the string extraction thingys that must be done.
But I really don't like that "scm_i_make_string()" call.
SCM
scm_from_zbyte_string (const char *str)
{
return scm_from_zbyte_stringn (str, -1);
}
SCM
scm_from_zbyte_stringn (const char *str, size_t len)
{
char *bf;
SCM res;
if (len == (size_t)-1)
len = strlen (str);
res = scm_i_make_string (len, &bf, 0);
memcpy (bf, str, len);
return res;
}
- scm_from_zbyte_string,
Bruce Korb <=