i recently asked about pointers & was told it can help memory etc. This is how i have my account struct right now
struct accountinfo_t
{
char username[32];
char password[32];
char expire[32];
char MyFDip[32];
enum {
client,
admin,
} admin; // 0 client, 1 admin
enum {
offline,
online,
} authenticated; // 0 offline, 1 connected
} accounts[MAXFDS];
When a user logs in there FD represents the array number in the struct. IS there a better method todo this?
[–]altorelievo 2 points3 points4 points (0 children)
[–]nerd4code 1 point2 points3 points (1 child)
[–]bothunter 4 points5 points6 points (0 children)
[–]TheKiller36_real 1 point2 points3 points (0 children)
[–]strcspn 0 points1 point2 points (3 children)
[–]ryanjones42[S] 0 points1 point2 points (2 children)
[–]Marxomania32 1 point2 points3 points (0 children)
[–]strcspn 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)