numparam/mystring.c, drop defect and unused `ccopy()'

This commit is contained in:
rlar 2016-04-30 18:44:19 +02:00
parent db8f8fc062
commit 3b0a595ecf
2 changed files with 0 additions and 12 deletions

View File

@ -18,7 +18,6 @@ bool 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);
void ccopy(SPICE_DSTRINGPTR a, char c);
void sadd(SPICE_DSTRINGPTR s, const char *t);
void nadd(SPICE_DSTRINGPTR s, long n);
void cadd(SPICE_DSTRINGPTR s, char c);

View File

@ -220,17 +220,6 @@ scopy_lower(SPICE_DSTRINGPTR dstr_p, const char *str) /* returns success flag */
}
void
ccopy(SPICE_DSTRINGPTR dstr_p, char c) /* returns success flag */
{
char *s_p; /* current string */
spice_dstring_setlength(dstr_p, 1);
s_p = spice_dstring_value(dstr_p);
s_p[0] = c;
}
char *
pscopy(SPICE_DSTRINGPTR dstr_p, const char *t, int start, int leng)
/* partial string copy, with C-based start - Because we now have a 0 based