100+ results for 'while(len--'

Not the results you expected?

qlatincodec.cpp (https://gitlab.com/x33n/phantomjs) C++ · 244 lines

115 QChar *uc = str.data();

116 while(len--) {

117 switch(uc->unicode()) {

jquery-spot_menu.js (https://github.com/brokenseal/jquery-spot_menu.git) JavaScript · 236 lines

88

89 while(len--) {

90 valueToFilter+= element.attr(filterAttributes[len]) || '';

lcd.c (http://embeddedprojects.googlecode.com/svn/trunk/) C · 239 lines

201 {

202 while(len-- != 0)

203 lcd_write_char(*s++);

jquery-passy.js (https://gitlab.com/staging06/myproject) JavaScript · 216 lines

140

141 while(len--) {

142 type = len % chars.length;

inflate.hpp (https://gitlab.com/TeoTwawki/higan) C++ Header · 346 lines

83 if(s->outcnt + len > s->outlen) return 1;

84 while(len--) s->out[s->outcnt++] = s->in[s->incnt++];

85 } else {

197 if(s->outcnt + len > s->outlen) return 1;

198 while(len--) {

199 s->out[s->outcnt] =

Fill.cpp (http://upp-mirror.googlecode.com/svn/trunk/) C++ · 216 lines

105 fixed = hstyle && vstyle;

106 while(len--) {

107 int x_hr;

x_ftoa.c (https://gitlab.com/alx741/sdcc) C · 193 lines

148 len = buflen;

149 while(len--)buffer[len] = 0;

150

MspFlash.cpp (https://gitlab.com/murixteam/energia-0101e0012-windows-mwc) C++ · 89 lines

61 {

62 while(len--)

63 *(dest++) = *(flash++);

73 FCTL1 = FWKEY+WRT; // Enable write

74 while(len--) // Copy data

75 *(flash++) = *(src++);

80 FCTL1 = FWKEY+WRT; // Set Erase bit

81 while(len--) // Copy data

82 *(flash++) = *(src++);

ping_strategy.js (https://bitbucket.org/travis_dunn/trail-of-secrets.git) JavaScript · 188 lines

107 var len = finalCandidates.length;

108 while(len--) {

109 if(finalCandidates[len].runtimeStats['pingMs'] > acceptable) {

jquery-passy.js (https://gitlab.com/kaouech/theme) JavaScript · 203 lines

127

128 while(len--) {

129 type = len % chars.length;

xml.cpp (git://git.savannah.gnu.org/commoncpp.git) C++ · 558 lines

298 unsigned char cp;

299 while(len--) {

300 switch(state) {

hashes.cpp (https://bitbucket.org/ddevine/haiku.git) C++ · 257 lines

218 // while(*msg) {

219 while(len--) {

220 a += *msg << 4;

EventEmitter.js (https://gitlab.com/yutiansut/Strut) JavaScript · 165 lines

37 var len = subs.length;

38 while(len--){

39 var sub = subs[len];

outdatedBrowser.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 138 lines

90

91 while(len--) {

92 if ( vendors[len] + prop in div.style ) {

indexWorker.js (https://gitlab.com/railway/railway-land) JavaScript · 190 lines

92 } else {

93 while(len--){

94 item = results[len];

mfbbres.c (git://pkgs.fedoraproject.org/nx) C · 371 lines

167 {

168 while(len--)

169 {

182 {

183 while(len--)

184 {

270 {

271 while(len--)

272 {

285 {

286 while(len--)

287 {

306 {

307 while(len--)

308 {

PrimitiveProcedure.java (http://jasi-himanshu.googlecode.com/svn/trunk/) Java · 1025 lines

419

420 while(len-- > 0) {

421 sb.append(ch);

lltextvalidate.cpp (https://github.com/HyangZhao/NaCl-main.git) C++ · 296 lines

196 if(len == 0) return rv;

197 while(len--)

198 {

214 if(len == 0) return rv;

215 while(len--)

216 {

233 if(len == 0) return rv;

234 while(len--)

235 {

261 if(len == 0) return rv;

262 while(len--)

263 {

285 S32 len = str.length();

286 while(len--)

287 {

symmetric_cipher.h (https://github.com/nardo/torque_sockets.git) C Header · 107 lines

78 {

79 while(len-- > 0)

80 {

94 {

95 while(len-- > 0)

96 {

GarbageCollector_Compaction.cpp (https://github.com/secretlabs/MicroFrameworkSDK-Mono.git) C++ · 448 lines

381 NATIVE_PROFILE_CLR_CORE();

382 while(len--)

383 {

afbbresd.c (git://pkgs.fedoraproject.org/nx) C · 217 lines

141 if (signdx > 0) {

142 while(len--) {

143 if (rop == RROP_BLACK)

158 } else {

159 while(len--) {

160 if (rop == RROP_BLACK)

177 if (signdx > 0) {

178 while(len--) {

179 if (rop == RROP_BLACK)

194 } else {

195 while(len--) {

196 if (rop == RROP_BLACK)

ParseOptions_Win32.cpp (https://netmf.svn.codeplex.com/svn) C++ · 316 lines

238 wprintf( L" %s", arg );

239 while(len-- > 0 && pos < argc) wprintf( L" %s", argv[ ++pos ].c_str() );

240 wprintf( L"\n" );

Patch.cpp (https://gitlab.com/fengluo/gba4ios) C++ · 441 lines

157 // fill the region with the given byte

158 while(len--) {

159 rom[offset++] = b;

sanityCheck.js (https://gitlab.com/Nowsad.kamrul/cthealthltd) JavaScript · 225 lines

37 len = all.length;

38 while(len--) {

39 pass = all[len](message);

46 len = requests.length;

47 while(len--) {

48 pass = requests[len](message);

56 len = responses.length;

57 while(len--) {

58 pass = responses[len](message);

proto.c (https://gitlab.com/cpana1/espweather) C · 130 lines

51 {

52 while(len--)

53 PROTO_ParseByte(parser, *buf++);

npysort_common.h (https://github.com/wesm/numpy.git) C Header · 336 lines

274 {

275 while(len--) {

276 const char t = *s1;

303 {

304 while(len--) {

305 *s1++ = *s2++;

312 {

313 while(len--) {

314 const npy_ucs4 t = *s1;

hash.h (https://github.com/nardo/torque_sockets.git) C Header · 103 lines

43 uint32 result = 0;

44 while(len--)

45 result = ((result << 8) | (result >> 24)) ^ uint32(*buf++);

memcmp.c (https://github.com/Andproject/platform_bootloader_legacy.git) C · 38 lines

33

34 while(len-- > 0) {

35 if(*a++ != *b++) return 1;

MessageStructsGen.cxx (http://openqwaq.googlecode.com/svn/trunk/) C++ · 4229 lines

123 resip::DataStream strm(mId);

124 while(len--){

125 c=in.get();

446 resip::DataStream strm(mCompressed.mCompressedId);

447 while(len--){

448 c=in_auto.get();

553 resip::DataStream strm(mSignerIdentity);

554 while(len--){

555 c=in.get();

692 resip::DataStream strm(mSignatureValue);

693 while(len--){

694 c=in.get();

980 resip::DataStream strm(mPayload);

981 while(len--){

982 c=in.get();

enc28j60.c (https://bitbucket.org/googy/buderus.git) C · 268 lines

129 enc28j60_tx(ENC28J60_SPI_RBM);

130 while(len--)

131 *(buf++) = enc28j60_rx();

139 enc28j60_tx(ENC28J60_SPI_WBM);

140 while(len--)

141 enc28j60_tx(*(buf++));

printf.c (https://github.com/hcl3210/opencv.git) C · 348 lines

290 if(sign && *sptr != '-') {(*output)('+',arg);len--;++v;}

291 while(len--) {(*output)(*sptr++,arg);++v;}

292 while(left--) {(*output)(pad,arg);++v;}

wait.js (https://gitlab.com/shinvdu/nodePPT) JavaScript · 199 lines

153

154 while(len--) {

155 if(uuid === handlers[len]) {

RadialGradient.cpp (http://upp-mirror.googlecode.com/svn/trunk/) C++ · 83 lines

32 RGBA *span = (RGBA *)_span;

33 while(len--) {

34 Point p = interpolator.Get();

ISO8859_1_Writer.java (https://github.com/borman/phoneme-qtopia.git) Java · 88 lines

60 synchronized public void write(char cbuf[], int off, int len) throws IOException {

61 while(len-- > 0) {

62 write(cbuf[off++]);

bcmendian.h (https://gitlab.com/Orvillo/Tomato) C Header · 168 lines

52

53 while(len--){

54 *buf = bcmswap16(*buf);

strchar.cpp (git://pkgs.fedoraproject.org/commoncpp2) C++ · 282 lines

79

80 while(len--) {

81 if(strchr(cs, str[len]))

124

125 while(len--) {

126 if(!strchr(cs, str[len]))

enctype_shared.c (https://gitlab.com/lheckemann/gslist) C · 181 lines

87

88 while(len--) {

89 if((p - s) == 63) {

corlib_native_System_String.cpp (https://emichag.svn.codeplex.com/svn) C++ · 1078 lines

214

215 p = pTmp; while(len--) *p++ = ch;

216

hipox-nand-vs-pci.patch (https://github.com/kakunbsc/openembedded.git) Patch · 212 lines

97 - {

98 - while(len-- > 0)

99 - *buf++ = *io;

177 -

178 - while(len-- > 0)

179 - *ptr16++ = *io | (*io << 8);

Expander.java (http://umslt.googlecode.com/svn/trunk/) Java · 71 lines

34 int len = rndSection.sections.length;

35 while(len-- > 0) {

36 String nextSection = rndSection.nextSection(0, secTimeInSec);

uip_arch.h (https://github.com/comex/libogc.git) C Header · 170 lines

146

147 while(len--) {

148 *dest0++ = *src0++;

155

156 while(len--) {

157 *dest0++ = (s8_t)c;

nandwrite.c (https://github.com/Andproject/platform_bootloader_legacy.git) C · 195 lines

120 dprintf("%x: ", (unsigned) b);

121 while(len-- > 0) {

122 dprintf("%b ", *b++);

initial_paging.c (https://github.com/mmikulicic/acaros.git) C · 184 lines

99

100 while(len--) {

101 dir = hat_pageDirIndex(addr);

149

150 while(len--) {

151 dir = hat_pageDirIndex(addr);

npysort_common.h (git://github.com/numpy/numpy.git) C Header · 376 lines ✨ Summary

This C header file provides a set of functions for comparing and manipulating various data types, including strings, Unicode characters, datetime objects, timedelta objects, and generic byte arrays. The functions are designed to be used in numerical computations, particularly with NumPy, and provide a way to compare and swap values between different data types.

266 {

267 while(len--) {

268 const char t = *s1;

295 {

296 while(len--) {

297 *s1++ = *s2++;

304 {

305 while(len--) {

306 const npy_ucs4 t = *s1;

368 {

369 while(len--) {

370 const char t = *a;

altera_up_avalon_rs232.c (https://github.com/jpwright/ece5760.git) C · 145 lines

107 alt_u8 parity_error;

108 while(len--)

109 {

121 int count = 0;

122 while(len--)

123 {

TTFReader.cpp (http://upp-mirror.googlecode.com/svn/trunk/) C++ · 312 lines

281 len >>= 1;

282 while(len--)

283 ps_name.Cat(Read16(s));

oddebug.c (https://github.com/rvalles/asbestos-avr8susb.git) C · 83 lines

24 uchar len = strlen(msg);

25 while(len--)

26 uartPutc(*msg++);

47 uartPutc(':');

48 while(len--){

49 uartPutc(' ');

67 uartPuts(prefix);

68 while(len--) {

69 printHex(*data++);

mfbbresd.c (https://github.com/larsclausen/xglamo.git) C · 207 lines

118 {

119 while(len--)

120 {

139 {

140 while(len--)

141 {

163 {

164 while(len--)

165 {

184 {

185 while(len--)

186 {

object.js (https://bitbucket.org/esatterwhite/wallace-io.git) JavaScript · 84 lines

4 clone = new Array(len);

5 while(len--) {

6 clone[len] = arr[len];

screen.c (git://github.com/vivekp/minix-nbsd.git) C · 208 lines

128

129 while(len-- > 0) {

130 ch = *data++;

leaflet-heatmap.js (git://github.com/pa7/heatmap.js.git) JavaScript · 203 lines

156 var len = pointOrArray.length;

157 while(len--) {

158 this.addData(pointOrArray[len]);

bloom.c (https://git01.codeplex.com/practice) C · 196 lines

27 u_int32 hash = 5381;

28 while(len--)

29 hash = ((hash << 5) + hash) + (*str++);

hash.c (https://bitbucket.org/youngtrips/ifreechat.git) C · 261 lines

23

24 while(len--)

25 hash = ((hash << 5) + hash) + (*buf++); /* hash * 33 + c */

sound.c (https://github.com/zodttd/gameboy4iphone.git) C · 483 lines

165 // for (; cpu.snd >= RATE; cpu.snd -= RATE)

166 while(len--)

167 {

makenucseq.c (git://pkgs.fedoraproject.org/EMBOSS) C · 214 lines

172

173 while(len-- > 0)

174 {

Image.cpp (http://upp-mirror.googlecode.com/svn/trunk/) C++ · 240 lines

164 fixed = hstyle && vstyle;

165 while(len--) {

166 Point h = interpolator.Get();

require.js (http://jsi.googlecode.com/svn/trunk/) JavaScript · 160 lines

74 loader = loaderMap[path] = [{},impl,dependenceMap];//dependenceMap ??????????

75 while(len--){

76 var dep = normalizeURI(dependences[len],path);

130 var len = task.length;

131 while(len--){

132 task.pop().call(this,require(path))

fileworld.cpp (https://github.com/lazyboy/lazypersonal.git) C++ · 216 lines

44 void print_word(char*p, int len) {

45 while(len--) putchar(*p++);

46 }

compiler_string.c (https://bitbucket.org/monami_ya/versaloon.git) C · 123 lines

97

98 while(len--)

99 *(char*)p++ = *(char*)source++;

SlowBcopy.c (git://pkgs.fedoraproject.org/nx) C · 115 lines

32 {

33 while(len--)

34 {

crc32.cpp (https://github.com/popovag/multitheftauto.git) C++ · 81 lines

48

49 while(len--)

50 ulCRC=(ulCRC>>8)^crc32_table[(ulCRC & 0xFF)^*buffer++];

CmdLine.cpp (git://pkgs.fedoraproject.org/nqc) C++ · 212 lines

197

198 while(len--)

199 {

dirent.c (https://github.com/bogus/mydlp-host-win32.git) C · 109 lines

57 }

58 while(len--) {

59 if(d->entry[len] == L'\\')

chain.test.js (https://gitlab.com/arendondiosa/webmpi) JavaScript · 190 lines

158 chain.addMethod('add', function (args, len) {

159 while(len--) num += args[len];

160 this.next(true);

iplbres.c (git://pkgs.fedoraproject.org/nx) C · 187 lines

148 {

149 while(len--)

150 {

167 {

168 while(len--)

169 {

fgt_error.c (https://gitlab.com/fgear-fgms/wlbraggs-f-jjths-fgms-0-x.git) C · 212 lines

70 size_t len = strlen(ptr);

71 while(len--) {

72 if (ptr[len] > ' ')

Stage2.LZMA.cs (git://github.com/daeken/Dotpack.git) C# · 381 lines

354 pos += _windowSize;

355 while(len-- > 0) {

356 if (pos >= _windowSize)

string.c (https://gitlab.com/BGCX261/znos-git.git) C · 612 lines

425 p = (uchar*)cs;

426 while(len--) {

427 c = *p++;

expand-emoji.js (https://github.com/meklarian/MekScripts.git) JavaScript · 92 lines

75

76 while(len--){

77 var n = cns[len];

oddebug.c (https://github.com/olopede/olopede.git) C · 50 lines

41 uartPutc(':');

42 while(len--){

43 uartPutc(' ');

bigint.cpp (https://github.com/swarnaprakash/acm-snippets.git) C++ · 472 lines

96

97 while(len--)

98 digit[pos++]=n[len]-'0';

112

113 while(len--)

114 digit[pos++]=n[len]-'0';

main.c (https://gitlab.com/marius33/ProiectLicenta-PANCC1101) C · 133 lines

68 udi_cdc_putc(len);

69 while(len--){

70 udi_cdc_wait_tx_ready();

libfaith.h (https://github.com/yaku/Faith.git) C Header · 453 lines

15 {

16 while(len--)

17 *out++ = *in++ ^ *key++;

sourcesink.c (https://gitlab.com/o1s2/selflrrn) C · 92 lines

86 c = 0;

87 while(len-- > 0) {

88 while(isprint((c & 0x7F)) == 0)

Question5_3.cpp (https://gitlab.com/0072016/ctci) C++ · 79 lines

10 int index = 0;

11 while(len--){

12 if(n&mask)

afbbres.c (git://pkgs.fedoraproject.org/nx) C · 326 lines

167 if (signdx > 0) {

168 while(len--) {

169 *addrl &= ~bit;

178 } else {

179 while(len--) {

180 *addrl &= ~bit;

247 if (signdx > 0) {

248 while(len--) {

249 *addrl |= bit;

258 } else {

259 while(len--) {

260 *addrl |= bit;

275 if (signdx > 0) {

276 while(len--) {

277 *addrl ^= bit;

SendText.c (https://repo.or.cz/AROS-Contrib.git) C · 603 lines

241

242 while(Len--)

243 {

265

266 while(Len--)

267 {

299

300 while(Len--)

301 {

397

398 while(Len--)

399 {

492 {

493 while(Len--)

494 {

Writer.cc (git://pkgs.fedoraproject.org/synopsis) C++ · 85 lines

32 size_t len = a->length();

33 while(len-- > 0)

34 {

testC.cpp (https://gitlab.com/mrfathin/UVa) C++ · 125 lines

53 data[len++]=0;

54 while(len--)

55 putchar(data[len]+48);

crc32.h (http://project-o.googlecode.com/svn/trunk/) C Header · 166 lines

89

90 while(len--)

91 {

118

119 while(len--)

120 ulCRC = (ulCRC >> 8) ^ crc32_table[(ulCRC & 0xFF) ^ *buffer++];

CRC8.java (https://bitbucket.org/viomi_team/viomi_oven.git) Java · 122 lines

65 unsigned char i;

66 while(len--!=0)

67 {

heatmap-gmaps.js (git://github.com/pa7/heatmap.js.git) JavaScript · 164 lines

79

80 while(len--){

81 var latlng = this.latlngs[len].latlng;

ccxx_tests.cpp (git://pkgs.fedoraproject.org/commoncpp2) C++ · 108 lines

75 // in the string, using the lookup table values.

76 while(len--)

77 ulCRC = (ulCRC >> 8) ^ crc32_table[(ulCRC & 0xFF) ^ *buffer++];

crc32.cc (https://github.com/antmar/Skyeye-fixes.git) C++ · 52 lines

47

48 while(len--)

49 ulCRC=(ulCRC>>8)^crc32_table[(ulCRC & 0xFF)^*buffer++];

cbuf.c (https://gitlab.com/miztake/samba) C · 328 lines

303

304 while(len--) {

305 switch (*s) {

chilli_module.c (https://gitlab.com/grase/coova-chilli) C · 70 lines

44 len = strlen(path);

45 while(len-- > 0)

46 if (path[len]=='-')

nude.js (https://gitlab.com/qb1t/node-nude) JavaScript · 226 lines

61 rlen;

62 while(len--) {

63 region = mergeRegions[len];

acpi_build.c (https://bitbucket.org/jacobgorm/xen-evilman) C · 233 lines

55

56 while(len--){

57 *(dst0++)=*(src0++);

24618.c (https://bitbucket.org/DinoRex99/exploit-database.git) C · 157 lines

41 p += 4; \

42 while(len--) { \

43 fputc(*p, stdout); \

math.c (https://bitbucket.org/prool/deadsouls.git) C · 380 lines

221

222 while(len-- > 0)

223 if(a->item[len].type == T_NUMBER)

257

258 while(len-- > 0) {

259 if(b->item[len].type == T_NUMBER) {

result_buffer.cc (http://mod-ndb.googlecode.com/svn/) C++ · 92 lines ✨ Summary

This C++ code implements a dynamic buffer class result_buffer for storing and manipulating strings. It provides methods for initializing, preparing, and outputting characters to the buffer, as well as handling memory allocation and deallocation. The buffer can grow dynamically based on the amount of data being written to it.

56 sz += len;

57 while(len--) *dst++ = *s++;

58 }

print.c (https://github.com/fufu/wisp.git) C · 279 lines

92 fputc('"', fp);

93 while(len--) {

94 char ch = *data++;

xmlfetch.cpp (git://pkgs.fedoraproject.org/commoncpp2) C++ · 135 lines

73 cout << "CHARS=";

74 while(len--)

75 cout << *(text++);

crc.cpp (git://github.com/gamman/MRPT.git) C++ · 80 lines

61

62 while(len-- )

63 {

protocol.c (https://bitbucket.org/dvhai08/android-tdx.git) C · 206 lines

115 {

116 while(len--)

117 PROTO_ParseByte(parser, *value++);

131 bufSize --;

132 while(len--)

133 {

digest.cpp (git://pkgs.fedoraproject.org/commoncpp2) C++ · 239 lines

94 {

95 while(len--)

96 csum += *(buffer++);

210 {

211 while(len--)

212 overflow(*buffer++);

tostring.c (git://pkgs.fedoraproject.org/libreoffice) C · 133 lines

103 {

104 while(len-- > 0)

105 {

GUI_AddHex.c (https://codeberg.org/Gruenstreifen-eV/BSFrance-stm32.git) C · 54 lines

47 **ps = '\0'; /* Make sure string is 0-terminated */

48 while(Len--) {

49 *(s + Len) = acHex[v & 15];

sigscan.cpp (http://hl2sb-src.googlecode.com/svn/trunk/) C++ · 126 lines

15 unsigned char* ustrncpy(unsigned char *dest, const unsigned char *src, int len) {

16 while(len--)

17 dest[len] = src[len];