/* fen.h - fen notation. * * Copyright (C) 2021-2024 Bruno Raoult ("br") * Licensed under the GNU General Public License v3.0 or later. * Some rights reserved. See COPYING. * * You should have received a copy of the GNU General Public License along with this * program. If not, see . * * SPDX-License-Identifier: GPL-3.0-or-later * */ #ifndef FEN_H #define FEN_H #include "chessdefs.h" #define FENSTRLEN 92 /* secure FEN string size */ extern const char *startfen; /* startup position */ extern pos_t *startpos(pos_t *pos); extern pos_t *fen2pos(pos_t *pos, const char *fen); extern char *pos2fen(const pos_t *pos, char *fen); #endif /* FEN_H */