scopyd(), return void

This commit is contained in:
rlar 2017-12-26 15:13:58 +01:00
parent 5164c16a1b
commit 3bd9c1c858
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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 */
}