             _________________________________101

{

while ( *sl !=  && *s2 != 0)
if ( *sl++ i= *s2++)
return false;

return (*sl == *s2) ;

\

J

   

bool streq(const char* si, const char* s2, int n) ;

   true,        -
,  false    .

2.        .

bool streq(char sl[], char s2[])
{

int i = 0;

while ( sl[i] 1= 0 && s2[i] != 0)
if ( sl[i] != s2[i])
return false;

-^i;

}

3.    cstring     -
  ,    .  :

size_t strlen(const char* s);

    .        -
;     strlen ():

//   
size_fc strlen(const char *s)

{

size_t len = 0;

while (*s != '\0') { //  
++len;             // 
++s;               // 

}

return len;

}

       s   -
  .      ,  -
  ,     .   -
 .

'i.    ,  (Greatest Common Divisor,
GCD),        :