Stuff
public text v1 · immutable#define C_NICK_LEN 15
#define C_SLOTS 20
struct id
{
int fd;
char nick[C_NICK_LEN];
};
struct id IDA[C_SLOTS];
int main()
{
char string[] = "NICK tikka\n";
char *temp = malloc(strlen(string)-5);
sscanf(string, "NICK %s\n",temp);
// struct id IDA[C_SLOTS];
IDA[0].fd = 123;
strcpy(IDA[0].nick, temp);
return 0;
}