01.03.2013 Views

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

g. surgulaZe, g. janeliZe, i. xuciSvili

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#include <br />

#include <br />

#include <br />

int main(void)<br />

{<br />

clrscr();<br />

char *string1 = "abcdefghijklmnopqrstuvwxyz";<br />

char *string2 = "onm";<br />

char *ptr;<br />

ptr = strpbrk(string1, string2);<br />

if (ptr)<br />

else<br />

printf("strpbrk found first character: %c\n", *ptr);<br />

printf("strpbrk didn't find character in set\n");<br />

getch();<br />

return 0;<br />

}<br />

strspn - ganvsazRvroT s1 striqonis monakveTis sigrZe, romelic<br />

Seicavs s2 striqonSi Semavali simboloebis simravles. Zebna<br />

Sewydeba, roca s1 striqonis mimdevrobiT wakiTvisas, gansaxilveli<br />

simbolo, ar aRmoCndeba s2 striqonSi.<br />

gansazRvra:<br />

int strspn(s1,s2)<br />

char *s1, *s2;<br />

magaliTi 11:<br />

#include <br />

#include <br />

#include <br />

#include <br />

{<br />

int main(void)<br />

clrscr();<br />

108

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!