File indexing completed on 2024-04-21 03:41:40
0001 /* 0002 SPDX-FileCopyrightText: 2004 Thomas Nagy <tnagy2^8@yahoo.fr> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include <stdio.h> 0008 #include <stdlib.h> 0009 0010 int main(int argc, char **argv) 0011 { 0012 caml_startup(argv); 0013 0014 char *eq = " a CH3(CH2)3COOH + b O2 -> c H2O + d CO2"; 0015 char *eq2 = " a CH3(CH2)3COOH + b O2 -> c H2O + d CO"; 0016 char *result = solve_equation(eq); 0017 char *result2 = solve_equation(eq2); 0018 0019 printf("solution : %s\n", result); 0020 0021 printf("solution : %s\n", result2); 0022 free(result2); 0023 0024 result2 = solve_equation(eq); 0025 printf("solution : %s\n", result2); 0026 0027 free(result); 0028 free(result2); 0029 0030 return 0; 0031 }