Re: Correct Typedef



change
error = func(&str, "abc.txt");
to
error = func(str, "abc.txt");

it should work


"Priya Mishra" <mis.priya@xxxxxxxxx> wrote in message
news:1121243300.894522.131940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> What is wrong in the below code,
> I get the 2 error when i compile the prog... what is mean ??
>
>
> error C2275: structure: illegal use of this type as an expression
> error C2065: str: undeclared identifier
>
>
> typedef struct
> {
> char file;
> int a;
> int b;
> int c;
>
>
>
> } structure;
>



.



Relevant Pages

  • Re: Generic linked list with internal storage?
    ... typedef struct node_t { ... node_t *prev; ... or discrete head/tail pointers of type ... and cast back to the specific types in your callback function. ...
    (comp.lang.c)
  • Re: Generic linked list with internal storage?
    ... typedef struct node_t { ... node_t *prev; ... if you want to store some user defined data in the list, ... just by doing two allocations. ...
    (comp.lang.c)
  • Re: pls help me....!
    ... nagaraj wrote: ... > undeclared (Each undeclared identifier is ... Ian ... Prev by Date: ...
    (comp.parallel.mpi)
  • Re: Correct Typedef
    ... > typedef struct _structure ... Otherwise an anonymous struct will work fine. ... Brian ... Prev by Date: ...
    (comp.lang.c)
  • Re: simpli int/str problem
    ... cannot concatenate 'str' and 'int' objects ... py> print SQL ... Prev by Date: ...
    (comp.lang.python)