Including white spaces using sscanf
Code is
sscanf(szbuf, "%s %c %s", szTmp1, &szChar, szTmp2);
where szubuff is fetch_query = SELECT NAME FROM TABLE1
szChar is =
szbuf, szTmp1, szTmp2 are character arrays. Problem is that szTmp2 is
storing only SELECT and ignoring the rest. But I need complete SELECT NAME
FROM TABLE1 inside szTmp2
No comments:
Post a Comment