Lines Matching refs:plname
157 if (!*plname && (s = getenv("USER")))
158 (void) strncpy(plname, s, sizeof(plname) - 1);
159 if (!*plname && (s = getenv("LOGNAME")))
160 (void) strncpy(plname, s, sizeof(plname) - 1);
161 if (!*plname && (s = getlogin()))
162 (void) strncpy(plname, s, sizeof(plname) - 1);
225 (void) strncpy(plname, argv[0] + 2, sizeof(plname) - 1);
229 (void) strncpy(plname, argv[0], sizeof(plname) - 1);
259 (void) strcpy(plname, "wizard");
262 if (!*plname || !strncmp(plname, "player", 4)
263 || !strncmp(plname, "games", 4))
278 (void) strcpy(lock, plname);
283 (void) strcpy(lock, plname);
311 (void) snprintf(SAVEF, sizeof(SAVEF), "save/%d%s", getuid(), plname);
320 pline("Hello %s, welcome to %s!", plname, gamename);
353 pline("Hello %s, welcome to %s!", plname, gamename);
494 * plname is filled either by an option (-u Player or -uPlayer) or
517 if (ct < (int)sizeof(plname) - 1)
518 plname[ct++] = c;
520 plname[ct] = 0;