scopyd(), return void
This commit is contained in:
parent
5164c16a1b
commit
3bd9c1c858
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
char *pscopy(SPICE_DSTRINGPTR s, const char *a, int i, int j);
|
||||
char *pscopy_up(SPICE_DSTRINGPTR s, const char *a, int i, int j);
|
||||
bool scopyd(SPICE_DSTRINGPTR a, SPICE_DSTRINGPTR b);
|
||||
void scopyd(SPICE_DSTRINGPTR a, SPICE_DSTRINGPTR b);
|
||||
void scopys(SPICE_DSTRINGPTR a, const char *b);
|
||||
void scopy_up(SPICE_DSTRINGPTR a, const char *str);
|
||||
void scopy_lower(SPICE_DSTRINGPTR a, const char *str);
|
||||
|
|
|
|||
|
|
@ -109,12 +109,11 @@ cadd(SPICE_DSTRINGPTR dstr_p, char c)
|
|||
* Create copy of the dynamic string. Dynamic strings are always NULL
|
||||
* terminated.
|
||||
* ----------------------------------------------------------------- */
|
||||
bool
|
||||
void
|
||||
scopyd(SPICE_DSTRINGPTR s, SPICE_DSTRINGPTR t) /* returns success flag */
|
||||
{
|
||||
spice_dstring_reinit(s);
|
||||
spice_dstring_append(s, spice_dstring_value(t), -1);
|
||||
return 1; /* Dstrings expand to any length */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue