Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct {
- char *string;
- } prod_t;
- int
- main(int agrc, char **argv){
- int i = 0;
- prod_t *c = NULL;
- char str2[100] = "abcd";
- c->string = (char *) malloc( 5 * sizeof(char));
- strcpy(c->string,str2);
- compares(c->stock,str2,i);
- return 0;
- }
- prod_t *c = malloc(sizeof(prod_t));
- prod_t *c = malloc(sizeof(prod_t));
- c->stock
- typedef struct {
- char *string;
- } prod_t;
- int
- main(int agrc, char **argv) {
- int i = 0;
- prod_t *c = malloc( sizeof( prod_t ));
- char str2[100] = "abcd";
- c->string = malloc( 5 * sizeof(char));
- strcpy(c->string,str2);
- compares(c->string,str2,i);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement