lucasart / c-chess-cli

Command Line Interface for UCI Chess engines written in C
GNU General Public License v3.0
71 stars 9 forks source link

Windows: quote argv[] values to allow spaces #51

Open lucasart opened 3 years ago

lucasart commented 3 years ago

Windows takes the entire command, and re-parses it, unlike POSIX which takes the, already parsed, argv[] array. So I must quote argv[] values in case they contain spaces. https://github.com/nkg114mc/c-gomoku-cli/commit/5c7c69f73a520b889ad1994fe706b7817dba69f1. Gomoku does this only for argv[0], but it should probably be done for all argv[] values.

lucasart commented 3 years ago

only argv[0] for now.