static void proto_recv_init(char *msg) { char cmd[STR_SIZE]; tux_t *tux; tux = newTux(); sscanf(msg, "%s %d\n", cmd, &tux->id); my_tux_id = tux->id; addList(listTux, tux); }