MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / strncpy

Function strncpy

Ext4Fsd/linux.c:1027–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027char* strncpy(char* dest, const char* src, size_t count)
1028{
1029 char *p = dest;
1030
1031 while (count) {
1032 if ((*p = *src) != 0)
1033 src++;
1034 p++;
1035 count--;
1036 }
1037 return dest;
1038}
1039
1040#endif
1041

Callers 4

Ext2QueryDrvVersionFunction · 0.85
kmem_cache_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected