I don't know if this is a porting problem, or a c problem. Old server was
on a Dec Alpha. Recompiled code is on
We have some old code I'm moving up to the latest AOLserver.

The old code is trying to convert a string to a float and failing
miserably.
  float north, south, west, east;
... set up select
  row = Ns_DbSelect(dbh[0], sql);
  while (Ns_DbGetRow(dbh[0], row) == NS_OK) {
 Ns_Log(Notice, "west %s",Ns_SetGet(row, "west_bounding_coor"));
        sscanf(Ns_SetGet(row, "west_bounding_coor"), "%f", &west);
        Ns_Log(Notice, "scanf|w %f", west);
   }

Any ideas?


[23/Jan/2002:14:19:14][13069.6][-conn0-] Notice: west -77.166664
[23/Jan/2002:14:19:14][13069.6][-conn0-] Notice: scanf|w
2681562226606441377776952614563497852686346855929163462500572300470144443898
0671657261205425483149622997396404232863663078425392745865278450166061972062
208.000000

Reply via email to