X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Fstr.c;h=6c2e39918850b0fc09234f7567ee19e042645b06;hb=4b8c6191f0204d6a0b62650490ef2794d62ec79c;hp=09eb77cd5af3736890996ebfc7ad924beea4220d;hpb=85511a4716efe359d50a21b2869f1d14f6b18731;p=pspp-builds.git diff --git a/src/libpspp/str.c b/src/libpspp/str.c index 09eb77cd..6c2e3991 100644 --- a/src/libpspp/str.c +++ b/src/libpspp/str.c @@ -293,35 +293,6 @@ mempset (void *block, int c, size_t size) /* Substrings. */ -/* Returns an empty substring. */ -struct substring -ss_empty (void) -{ - struct substring ss; - ss.string = NULL; - ss.length = 0; - return ss; -} - -/* Returns a substring whose contents are the given C-style - string CSTR. */ -struct substring -ss_cstr (const char *cstr) -{ - return ss_buffer (cstr, strlen (cstr)); -} - -/* Returns a substring whose contents are the CNT characters in - BUFFER. */ -struct substring -ss_buffer (const char *buffer, size_t cnt) -{ - struct substring ss; - ss.string = (char *) buffer; - ss.length = cnt; - return ss; -} - /* Returns a substring whose contents are the CNT characters starting at the (0-based) position START in SS. */ struct substring