Re: ESQL/C problem
Posted in 1998
In article <MVeL1.155$Of7.19594@198.235.216.4>, nguyenv@Cognos.COM (Vinhson) wrote: > Hello, > > I want to determine the version number of my ESQL/C product > within an ESQL/C program. Currently, I'm using ESQL/C 7.2x. > > Does anyone know how I could do that? > Any suggestion is greatly appreciated. > > Vinhson > Email: nguyenv@cognos.com > > Here's a quick and dirty under UNIX, assuming the esql -V gives you the info you need. I might be wrong about esql -V, so somone can correct me or Vinhson can just figure it out. Also this code segement was written on-the-fly, not compiled or unit tested, i.e., its the idea I want to convey. #include <stdio.h> int get_esql_vers(char *ver) { FILE *pipe; if ((pipe = popen("esql -V", "r")) == NULL) return 0; fgets(ver, 25, pipe); pclose(pipe); return 1; } -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum