echodict/llama.cpp
version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786
0773
1#include <clocale>2#include <cstdio>3#include <string>4 5int main(int argc, char** argv) {6 std::setlocale(LC_NUMERIC, "C");7 8 std::string filename = "main";9 if (argc >= 1) {10 filename = argv[0];11 }12 13 // Get only the program name from the full path14 size_t pos = filename.find_last_of("/\\");15 if (pos != std::string::npos) {16 filename = filename.substr(pos+1);17 }18 19 fprintf(stdout, "\n");20 fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());21 fprintf(stdout, "Please use 'llama-mtmd-cli' instead.\n");22 fprintf(stdout, "\n");23 24 return EXIT_FAILURE;25}26 