Lines Matching refs:string
27 #include <string.h>
87 /* Allocate a bit string consisting of '0' and '1' from the MPI
103 /* Allocate a bit string consisting of '0' and '1' from the MPI A. Do
128 /* Shift a bit string to the right. */
130 rshiftbitstring (char *string, size_t n)
132 size_t len = strlen (string);
137 memmove (string+n, string, len-n);
138 memset (string, '0', n);
141 /* Shift a bit string to the left. Caller needs to free the result. */
143 lshiftbitstring (const char *string, size_t n)
145 size_t len = strlen (string);
152 for (; *string == '0' && string[1]; string++, len--)
154 memcpy (result, string, len);
155 if (*string == '0' && !string[1])
156 n = 0; /* Avoid extra nulls for an only 0 string. */