Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
nnn
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Home-grown xstrlcpy()
master
Arun Prakash Jana
8 anni fa
parent
3243a3082a
commit
b817699b7f
Non sono state trovate chiavi note per questa firma nel database
ID Chiave GPG:
A75979F35C080412
1 ha cambiato i file
con
3 aggiunte
e
2 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
nnn.c
+ 3
- 2
nnn.c
Vedi File
@@ -205,8 +205,9 @@ max_openfds()
static void
xstrlcpy(char *dest, const char *src, size_t n)
{
strncpy(dest, src, n - 1);
dest[n - 1] = '\0';
while (--n && (*dest++ = *src++));
if (!n)
*dest = '\0';
}
/*
Write
Preview
Loading…
Annulla
Salva