CannibalSmith ([info]cannibalsmith) rakstīja [info]koderi kopienā,
int trailing_newline_count(char* s)
{
	int i = 0;
	while (s[i] != 0) ++i;
	--i;
	int result = 0;
	while (s[i] == '\n' && i >= 0)
	{
		++result;
		--i;
	}
	return result;
}


(Lasīt komentārus)

Nopūsties:

No:
Lietotājvārds:
Parole:
Ievadi te 'qws' (liidzeklis pret spambotiem):
Temats:
Tematā HTML ir aizliegts
  
Ziņa:

Gandrīz jau aizmirsu pateikt – šis lietotājs ir ieslēdzis IP adrešu noglabāšanu. Operatore Nr. 65.
Neesi iežurnalējies. Iežurnalēties?