diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-23 09:14:19 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-23 09:14:19 +0000 |
| commit | f862a227beeed5476d09cd67573996258bca5d19 (patch) | |
| tree | e32c97c736d577a8a19c3817eeb57c0b518c45b7 /puzzles.h | |
| parent | b909204392c9567564ee048eeea3b529420e1c86 (diff) | |
| download | puzzles-f862a227beeed5476d09cd67573996258bca5d19.zip puzzles-f862a227beeed5476d09cd67573996258bca5d19.tar.gz puzzles-f862a227beeed5476d09cd67573996258bca5d19.tar.bz2 puzzles-f862a227beeed5476d09cd67573996258bca5d19.tar.xz | |
`Guess', a Mastermind clone from James Harvey. This checkin also
introduces a few new utility functions in misc.c, one of which is
the bitmap obfuscator from Mines (which has therefore been moved out
of mines.c).
[originally from svn r5992]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -205,6 +205,13 @@ char *dupstr(const char *s); * misc.c */ void free_cfg(config_item *cfg); +void obfuscate_bitmap(unsigned char *bmp, int bits, int decode); + +/* allocates output each time. len is always in bytes of binary data. + * May assert (or just go wrong) if lengths are unchecked. */ +char *bin2hex(const unsigned char *in, int inlen); +unsigned char *hex2bin(const char *in, int outlen); + /* * version.c |