48+ results for 'while (*d++ = *s++); repo:xbmc/xbmc' (0 ms)
Not the results you expected?
MIDLWrapper.cpp (https://gitlab.com/x33n/phantomjs) C++ · 86 lines
serial_handler.c (https://github.com/schneider42/uberbus.git) C · 112 lines
Args.hpp (https://github.com/mobotics/XCSoar.git) C++ Header · 182 lines
PortableStrlcpy.c (https://github.com/kevsmith/skipdb.git) C · 61 lines
serial.c (https://github.com/schneider42/ubd.git) C · 190 lines
strl.hpp (https://github.com/nicoya/OpenEmu.git) C++ Header · 48 lines
12 if(n) {
13 while(--n && (*d++ = *s++)); //copy as many bytes as possible, or until null terminator reached
14 }
16 if(!n) {
17 if(length) *d = 0;
18 while(*s++); //traverse rest of s, so that s - src == strlen(src)
19 }
28 size_t n = length;
30 while(n-- && *d) d++; //find end of dest
31 size_t dlength = d - dest;
32 n = length - dlength; //subtract length of dest from maximum string length
strlcpy.c (https://gitlab.com/buktemirlnk/xorg-xserver) C · 55 lines
string.c (git://github.com/nickbjohnson4224/rhombus.git) C · 164 lines
106 /* Copy as many bytes as will fit */
107 if (n != 0) {
108 while (--n != 0) {
109 if ((*d++ = *s++) == '\0') {
119 }
121 while (*s++);
122 }
143 /* Find the end of dst and adjust bytes left but don't go past end */
144 while (n-- != 0 && *d != '\0') {
145 d++;
146 }
152 return (dlen + strlen(s));
153 }
154 while (*s != '\0') {
155 if (n != 1) {
156 *d++ = *s;
string.c (https://github.com/alibaba/AliOS-Things.git) C · 131 lines
strlcpy.c (git://github.com/nickbjohnson4224/rhombus.git) C · 52 lines
string.c (https://gitlab.com/koreader/mupdf-old) C · 398 lines
21 if (n != 0 && --n != 0) {
22 do {
23 if ((*d++ = *s++) == 0)
24 break;
25 } while (--n != 0);
30 if (siz != 0)
31 *d = '\0'; /* NUL-terminate dst */
32 while (*s++)
33 ;
34 }
47 /* Find the end of dst and adjust bytes left but don't go past end */
48 while (*d != '\0' && n-- != 0)
49 d++;
50 dlen = d - dst;
strlcpy.c (https://bitbucket.org/BlairJamieson/roody.git) C · 82 lines
29 if (n != 0 && --n != 0) {
30 do {
31 if ((*d++ = *s++) == 0)
32 break;
33 } while (--n != 0);
38 if (size != 0)
39 *d = '\0'; /* NUL-terminate dst */
40 while (*s++);
41 }
62 /* Find the end of dst and adjust bytes left but don't go past end */
63 while (n-- != 0 && *d != '\0')
64 d++;
65 dlen = d - dst;
ufuncs.c (https://gitlab.com/tormod/udw-firmware) C · 104 lines
strutils.c (https://github.com/lucamassarelli/yarasafe.git) C · 252 lines
zstr.c (https://github.com/jhallen/joes-sandbox.git) C · 127 lines
string.c (https://github.com/RfidResearchGroup/proxmark3.git) C · 349 lines
Mify.cpp (https://github.com/ultimatepp/mirror.git) C++ · 214 lines
string.c (https://github.com/alibaba/genie-bt-mesh-stack.git) C · 205 lines
zstr.c (https://github.com/jhallen/joes-sandbox.git) C · 85 lines
tstring.c (https://github.com/Ai-Thinker-Open/Telink_SIG_Mesh.git) C · 251 lines
37 return (char*) s;
38 }
39 } while (*s++);
40 return (0);
41 }
46 unsigned char *s2 = (unsigned char *) m2;
48 while (n--) {
49 if (*s1 != *s2) {
50 return *s1 - *s2;
85 char *lasts = src + (len - 1);
86 char *lastd = dest + (len - 1);
87 while (len--)
88 *(char *) lastd-- = *(char *) lasts--;
89 }
lib_wcslcpy.c (https://bitbucket.org/hg42/nuttx.git) C · 93 lines
ia64-dis.c (https://github.com/userlandkernel/baseband-research.git) C · 177 lines
37 #define PARAMS(x) x SECTION(SEC_KDEBUG)
38 #define ATTRIBUTE_UNUSED
39 #define abort() do { } while (0)
41 #define BFD_HOST_64_BIT u64_t
130 char* d = dest;
131 const char* s = src;
132 do { *d++ = *s; } while (*s++);
133 return dest;
134 };
142 d++;
143 /* copy until end of s, including the \0 */
144 while ( (*d++ = *s++) );
145 return dest;
146 };
compat.c (https://gitlab.com/ekollof/Sysalerter-backend.git) C · 259 lines
libc.c (https://github.com/dls/house.git) C · 143 lines
64 char *d = dest;
65 do {
66 if ((*d++ = *src++) == 0) {
67 while (--n != 0)
69 break;
70 }
71 } while (--n != 0);
72 }
73 return dest;
98 if (*s == c)
99 rtnval = (char*) s;
100 } while (*s++);
101 return (rtnval);
102 }
107 int e = 0;
108 int c;
109 while ((c = *s++) != '\0' && isdigit(c)) {
110 a = a*10.0 + (c - '0');
111 }
patch-musl.patch (https://github.com/sdsddsd1/kiss-games.git) Patch · 62 lines
14 -
15 - if(n) {
16 - while(--n && (*d++ = *s++)); //copy as many bytes as possible, or until null terminator reached
17 - }
18 -
19 - if(!n) {
20 - if(length) *d = 0;
21 - while(*s++); //traverse rest of s, so that s - src == strlen(src)
22 - }
23 -
31 - size_t n = length;
32 -
33 - while(n-- && *d) d++; //find end of dest
34 - size_t dlength = d - dest;
35 - n = length - dlength; //subtract length of dest from maximum string length
strlcpy.h (https://github.com/monyxcoin/monyx-coin.git) C Header · 83 lines
32 /* Copy as many bytes as will fit */
33 if (n != 0) {
34 while (--n != 0) {
35 if ((*d++ = *s++) == '\0')
42 if (siz != 0)
43 *d = '\0'; /* NUL-terminate dst */
44 while (*s++);
45 }
63 /* Find the end of dst and adjust bytes left but don't go past end */
64 while (n-- != 0 && *d != '\0')
65 d++;
66 dlen = d - dst;
69 if (n == 0)
70 return (dlen + strlen(s));
71 while (*s != '\0') {
72 if (n != 1) {
73 *d++ = *s;
inspstring.cpp (https://github.com/thepaul/inspircd-deb.git) C++ · 138 lines
strlcpy.c (https://github.com/elly/ithildin.git) C · 58 lines
Args.hpp (https://github.com/Tjeerdm/XCSoar.git) C++ Header · 212 lines
strlcpy.c (https://github.com/stevenjenkins/openafs.git) C · 54 lines
misc.c (https://github.com/chrissicool/l4openbsd.git) C · 155 lines
strl.hpp (https://github.com/Themaister/RetroArch-Phoenix.git) C++ Header · 52 lines
14 if(n) {
15 while(--n && (*d++ = *s++)); //copy as many bytes as possible, or until null terminator reached
16 }
18 if(!n) {
19 if(length) *d = 0;
20 while(*s++); //traverse rest of s, so that s - src == strlen(src)
21 }
30 unsigned n = length;
32 while(n-- && *d) d++; //find end of dest
33 unsigned dlength = d - dest;
34 n = length - dlength; //subtract length of dest from maximum string length
misc.c (https://github.com/struct/QueMod.git) C · 124 lines
strlcpy.c (https://github.com/chad/rubinius.git) C · 54 lines
memstr.c (https://bitbucket.org/dimichxp/2ndboot) C · 69 lines
debug.h (https://bitbucket.org/mischief/oskit) C Header · 66 lines
lcd_console.c (https://gitlab.com/my-imx6/u-boot-2015.04) C · 270 lines
expandpath.c (https://github.com/NCAR/lrose-core.git) C · 124 lines
bsdstring.c (https://github.com/CTD1/eressea-server-bugfixing.git) C · 130 lines
48 if (n != 0 && --n != 0) {
49 do {
50 if ((*d++ = *s++) == 0)
51 break;
52 } while (--n != 0);
57 if (siz != 0)
58 *d = '\0'; /* NUL-terminate dst */
59 while (*s++);
60 }
92 /* Find the end of dst and adjust bytes left but don't go past end */
93 while (*d != '\0' && n-- != 0)
94 d++;
95 dlen = d - dst;
sub.c (https://bitbucket.org/mveety/9boot) C · 427 lines
wrtfmt.c (https://github.com/neurodebian/pkg-xppaut.git) C · 255 lines
205 {
206 if(cursor && mv_cur()) return(mv_cur());
207 while(a--) (*putn)(*s++);
208 return(1);
209 }
222 int wrt_A(p,len) char *p; ftnlen len;
223 {
224 while(len-- > 0) (*putn)(*p++);
225 return(0);
226 }
227 int wrt_AW(p,w,len) char * p; ftnlen len;int w;
228 {
229 while(w>len)
230 { w--;
231 (*putn)(' ');
debug.h
(git://github.com/l4ka/hazelnut.git)
C Header · 69 lines
✨ Summary
This C header file provides a macro POKE_STATUS
to display text on the VGA text display, which is a quick and mostly-reliable status indicator. It allows for assembly code or C code to be used depending on whether the ASSEMBLER
and DEBUG
macros are defined. The macro takes a character or string as input and writes it to the VGA display at a specific location.
This C header file provides a macro POKE_STATUS
to display text on the VGA text display, which is a quick and mostly-reliable status indicator. It allows for assembly code or C code to be used depending on whether the ASSEMBLER
and DEBUG
macros are defined. The macro takes a character or string as input and writes it to the VGA display at a specific location.