update-game-score.c (SCORE_FILE_PREFIX): Don't hardcode.
authorColin Walters <walters@gnu.org>
Sun, 7 Apr 2002 05:46:15 +0000 (05:46 +0000)
committerColin Walters <walters@gnu.org>
Sun, 7 Apr 2002 05:46:15 +0000 (05:46 +0000)
commit5795b42089cafe8d25f248cecc31a6032bf99121
tree3f3ffb18cd97654c1281f8abb3c4082a3f3d7f75
parent596d02bc1b2078ed61c83cf1c1db0ddabd179755
update-game-score.c (SCORE_FILE_PREFIX): Don't hardcode.
(get_user_id): Take struct passwd as an argument.
(get_home_dir): New function.
(main): Read in user information here.  Discover home directory if
necessary.
(read_score): Trim newline only in `getline' case.
lib-src/ChangeLog
lib-src/update-game-score.c