diff options
Diffstat (limited to 'cube.h')
| -rw-r--r-- | cube.h | 14 |
1 files changed, 3 insertions, 11 deletions
| @@ -86,20 +86,12 @@ Multiple representations of the cube as text are supported: | |||
| 86 | If OUT is the output in SRC format, one can use `cube_t cube = OUT` to | 86 | If OUT is the output in SRC format, one can use `cube_t cube = OUT` to |
| 87 | declare a new cube object. | 87 | declare a new cube object. |
| 88 | 88 | ||
| 89 | - LST: similar to SRC, but only a list of comma-separated numbers is printed. | 89 | - LST: a format for internal use and generating code. |
| 90 | 90 | The cube is printed as a comma-separated list of 20 integers, as they appear | |
| 91 | Not all formats are supported for both reading and writing. More formats | 91 | in cube_t. Corners come first, followed by edge (unlike H48). |
| 92 | may be supported in the future. | ||
| 93 | ******************************************************************************/ | 92 | ******************************************************************************/ |
| 94 | 93 | ||
| 95 | /* Reads a cube from buf in the specified format, and return it. | ||
| 96 | * Supported formats: "H48". | ||
| 97 | */ | ||
| 98 | cube_t readcube(char *format, char *buf); | 94 | cube_t readcube(char *format, char *buf); |
| 99 | |||
| 100 | /* Write the given cube to buf in the specified format. | ||
| 101 | * Supported formats: "H48", "SRC", "LST". | ||
| 102 | */ | ||
| 103 | void writecube(char *format, cube_t cube, char *buf); | 95 | void writecube(char *format, cube_t cube, char *buf); |
| 104 | 96 | ||
| 105 | /****************************************************************************** | 97 | /****************************************************************************** |
