myPage
and struct myPage
are different types. You could make them the same type by changing the struct
definition to:
typedef struct myPage { int pageNum; } myPage;
or you could just use myPage *
instead of struct myPage *
.
Related Posts:
- How to properly malloc for array of struct in C
- Why am I getting this error: “data definition has no type or storage class”?
- Returning an array using C
- What does “request for member ‘*******’ in something not a structure or union” mean?
- Why do I get “cast from pointer to integer of different size” error?
- What does “request for member ‘*******’ in something not a structure or union” mean?
- Initializing array of structures
- Excess elements of scalar initializer for pointer to array of ints
- What exactly is meant by “de-referencing a NULL pointer”?
- Structure padding and packing
- typedef struct pointer definition
- Realloc Invalid Pointer in C
- Why and when to use static structures in C programming?
- error: struct has no member named X
- Constructor for structs in C
- Pointer to 2D arrays in C
- Pointer to a string in C?
- Using pointer to char array, values in that array can be accessed?
- Arrow operator (->) usage in C
- typedef struct vs struct definitions [duplicate]
- What does “dereferencing” a pointer mean?
- char *array and char array[]
- What is the difference between const int*, const int * const, and int const *?
- Difference between a Structure and a Union
- What does ** do in C language?
- Invalid pointer error on invoking free() after malloc in C
- How to initialize a struct in accordance with C programming language standards
- expression must have integral type
- How do you pass a function as a parameter in C?
- How do you pass a function as a parameter in C?
- C free(): invalid pointer
- What’s wrong with my code? What is argv[1]?
- size of struct in C
- Warning: return from incompatible pointer type in C
- How to do scanf for single char in C
- Break statement not within loop or switch in C
- Cache Simulator in C
- strcmp giving segmentation fault
- Where is the C auto keyword used?
- Initialization from incompatible pointer type warning when assigning to a pointer
- Typedef function pointer?
- Convert char array to a int number in C
- Bind failed: Address already in use
- What is the difference between %f and %lf in C?
- What is stdin in C language?
- How to pass 2D array (matrix) in a function in C?
- How to compile makefile using MinGW?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- too many arguments for format [-Wformat-extra-args]
- What is the difference between char array and char pointer in C?
- How to copy a char array in C?
- cast to pointer from integer of different size, pthread code
- Invalid type argument of unary ‘*’ (have ‘int’) Error in C
- Why use pointers?
- Where to find the complete definition of off_t type?
- struct has no member named
- printf not printing to screen
- Still Reachable Leak detected by Valgrind
- Assembly x86 – “leave” Instruction
- What is signed integer overflow?
- When to use const char * and when to use const char []
- What do numbers using 0x notation mean?
- Can I create an Array of Char pointers in C?
- Does stack grow upward or downward?
- Convert Little Endian to Big Endian
- error C2371: ‘functionname’ redefinition: different basic types
- How does one represent the empty char?
- How to write to a file using open() and printf()?
- note: previous implicit declaration of ‘point_forward’ was here
- Can I define a function inside a C structure?
- getc() vs fgetc() – What are the major differences?
- Casting a pointer to an int
- C Unknown type name ‘my_structure’
- Tokenizing strings in C
- Difference between char *argv[] and char **argv for the second argument to main()
- Warning: comparison of distinct pointer types
- Dereference void pointer
- “-bash: gcc: command not found” using cygwin when compiling c?
- How to format strings using printf() to get equal length in the output
- What do \t and \b do?
- Where does linux store my syslog?
- Example of waitpid() in use?
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- write() to stdout and printf output not interleaved?
- How to know what the ‘errno’ means?
- Split string with multiple delimiters using strtok in C
- Printf was not declared in this scope
- warning: missing terminating ” character [enabled by default]
- How to free memory from char array in C
- Can I get Unix’s pthread.h to compile in Windows?
- Initializing 2D char array in C
- FFT in a single C-file
- Process exited with return value 3221225477
- How do I check if a string contains a certain character?
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- %p Format specifier in c
- Level vs Edge Trigger Network Event Mechanisms
- Convert Char to String in C