vendredi 2 septembre 2016

Malloc in If Statement in C

i am new in c, and i can not understand following piece of code. If anyone can explain it, i am really happy. Thanks in advance.

 if( ! ( st_cur = (struct ST_info *) malloc(sizeof( struct ST_info ) ) ) )
    {
        perror( "malloc failed" );
        return( 1 );
    }

Aucun commentaire:

Enregistrer un commentaire