diff --git a/cores/JupiterAce/bin2hex.c b/cores/JupiterAce/bin2hex.c deleted file mode 100644 index baedc9b..0000000 --- a/cores/JupiterAce/bin2hex.c +++ /dev/null @@ -1,33 +0,0 @@ -#include -#include - -int main (int argc, char *argv[]) -{ - FILE *f; - unsigned char *scr; - char nombre[256]; - int i,leido; - - if (argc<2) - return 1; - - scr = malloc(65536); - f = fopen (argv[1],"rb"); - if (!f) - return 1; - - leido = fread (scr, 1, 65536, f); - fclose (f); - - strcpy (nombre, argv[1]); - nombre[strlen(nombre)-3]=0; - strcat (nombre, "hex"); - - f = fopen (nombre, "wt"); - for (i=0;i -#include - -int main (int argc, char *argv[]) -{ - FILE *f; - unsigned char *scr; - char nombre[256]; - int i,leido; - - if (argc<2) - return 1; - - scr = malloc(65536); - f = fopen (argv[1],"rb"); - if (!f) - return 1; - - leido = fread (scr, 1, 65536, f); - fclose (f); - - strcpy (nombre, argv[1]); - nombre[strlen(nombre)-3]=0; - strcat (nombre, "hex"); - - f = fopen (nombre, "wt"); - for (i=0;i -#include - -int main (int argc, char *argv[]){ - FILE *f; - unsigned char *scr; - char nombre[256]; - int i,leido; - - if (argc<2) - return 1; - - scr = (unsigned char *) malloc(65536); - f = fopen (argv[1],"rb"); - if (!f) - return 1; - - leido = fread (scr, 1, 65536, f); - fclose (f); - - strcpy (nombre, argv[1]); - nombre[strlen(nombre)-3]=0; - strcat (nombre, "hex"); - - f = fopen (nombre, "wt"); - for (i=0;i. + * + * SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#include +#include +#include + +int main (int argc, char *argv[]){ + FILE *f; + unsigned char *scr; + char nombre[256]; + int i,leido; + + if (argc<2) + return 1; + + scr = (unsigned char *) malloc(65536); + f = fopen (argv[1],"rb"); + if (!f) + return 1; + + leido = fread (scr, 1, 65536, f); + fclose (f); + + strcpy (nombre, argv[1]); + nombre[strlen(nombre)-3]=0; + strcat (nombre, "hex"); + + f = fopen (nombre, "wt"); + for (i=0;i