Find character index

 

#include <stdio.h> 
#include < String .h> int main () 
{ const char STR [] = " http://www.runoob.com " ;
    const char CH = ' . ' ;
    char * RET; 
   RET = the strchr (STR, CH); 
   the printf ( " |% C | string following the - | S% | \ n- " , CH, RET); return ( 0 ); 
}


     


   
   

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11478879.html