between syntax, are there any equal function
        Posted  
        
            by gcc
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by gcc
        
        
        
        Published on 2010-05-22T17:59:30Z
        Indexed on 
            2010/05/22
            18:10 UTC
        
        
        Read the original article
        Hit count: 190
        
Filed under: 
        c
  /*  char **mainp=malloc(sizeof(char *)*2);  
     mainp[0]=malloc(sizeof(char)*300);                                               
     mainp[1]=malloc(sizeof(char )*300);  */ 
*I have some input about propositional calculus
*After calculating some math funtion-removing paranthesis-changing"&" with 
   ","-replacing "|" with","
I have >>
  (1)  P,-Q,Q,-R is stored in mainp[0] 
       R,A,P,B,F   is stored in mainp[1]
*My question is:
  Between comma , I have want to compare two pointer array. 
    If there is any equal two or more functions(Q,-R is function representation) 
        ,function which you will show me how to write  must return int.
  According to example (1),function will return 1 (I expect like that)
/*I have som thought://which function should I have use:*/
     in for loop
    if( strspn(mainp[0][i])==1 )
        increment d;
        continue;
    or
    in for loop 
      srtcmp(mainp[0][i],mainp[1]);
© Stack Overflow or respective owner