Actions

EmSys

CCoding Style - Be consistent

From EdWiki

Be consistent

struct UserQueue {
    int noOfItemsInQ;
    int frontOfTheQueue;
    int queueCapacity;
    int noOfUsersInQueue;
}queue;
queue.queueCapacity
  • Queue is redundant
struct UserQueue {
    int nitem;
    int front;
    int capacity;
    int nusers;
}queue;
queue.capacity
  • No clarity is lost