Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define STATUS_OK (0) /* Successfully completed. */
- #define STATUS_ERR_INVALID (-1) /* Bad argument value. E.g. null pointer */
- #define STATUS_ERR_NOMEM (-2) /* No memory to complete operation. */
- #define STATUS_ERR_NODATA (-3) /* No data to return/process. */
- #define STATUS_ERR_SINGULAR (-0x10) /* The matrix is singular (degenerative) */
- typedef struct _PrQueue
- {
- void * _item;
- int n_priority;
- }PrQueue;
- int prQueueCreate(size_t n_capacity, PrQueue ** pp_queue)
- {
- pp_queue = (PrQueue **) malloc(n_capacity*(sizeof(PrQueue **)));
- for(int i=0; i <(int) n_capacity; i++)
- {
- pp_queue[i] = (PrQueue *) malloc( sizeof(PrQueue *) );
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement