MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / re__copy_and_pad

Function re__copy_and_pad

extern/editline/src/refresh.c:970–985  ·  view source on GitHub ↗

re__copy_and_pad(): * Copy string and pad with spaces */

Source from the content-addressed store, hash-verified

968 * Copy string and pad with spaces
969 */
970private void
971re__copy_and_pad(Char *dst, const Char *src, size_t width)
972{
973 size_t i;
974
975 for (i = 0; i < width; i++) {
976 if (*src == '\0')
977 break;
978 *dst++ = *src++;
979 }
980
981 for (; i < width; i++)
982 *dst++ = ' ';
983
984 *dst = '\0';
985}
986
987
988/* re_refresh_cursor():

Callers 2

re_refreshFunction · 0.85
re_fastputcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected