MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / padstr

Function padstr

tinyemu/ide.c:236–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234static void ide_sector_write_cb2(void *opaque, int ret);
235
236static void padstr(char *str, const char *src, int len)
237{
238 int i, v;
239 for(i = 0; i < len; i++) {
240 if (*src)
241 v = *src++;
242 else
243 v = ' ';
244 *(char *)((long)str ^ 1) = v;
245 str++;
246 }
247}
248
249/* little endian assume */
250static void stw(uint16_t *buf, int v)

Callers 1

ide_identifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected