mirror of
https://git.zap.org.au/git/trader.git
synced 2025-06-30 22:19:26 -04:00
Current and previous versions of ISO/IEC 9945-1 (POSIX), particularly SUSv3 (2001) and SUSv4 (2008), require strfmon() to return rather meaningless strings when used with the POSIX "C" locale. In particular, the standard POSIX locale does not define a currency symbol, a monetary radix symbol (decimal point) or a negative sign. This means strfmon(..., "%n", -123.45) is supposed to produce "12345" instead of something like "$-123.45"! The new xstrfmon() overcomes these limitations by using snprintf() as appropriate.
************************************************************************** * * * Star Traders: A Game of Interstellar Trading * * Copyright (C) 1990-2018, John Zaitseff * * * ************************************************************************** This directory, src, contains the main source code for Star Traders. The source code is split up among the following files: trader.c trader.h - Main program, command-line interface globals.c globals.h - Global game constants and variables game.c game.h - Game start, end and (some) display functions move.c move.h - Functions for making and processing a move exch.c exch.h - Stock Exchange and Bank functions fileio.c fileio.h - Load and save game file functions help.c help.h - Help text functions: how to play the game intf.c intf.h - Basic text input/output functions utils.c utils.h - Utility functions needed by Star Traders system.h - All system header files are included here