473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simple vsscanf source code?

Hello,

I realize that the source code for vsscanf is available from several
sources, such as GNU. However, all such source code I've found so far is
filled with cryptic (to me) #ifdefs, system stuff, and basically all kinds
of
general things related to a particular implementation.

I'm looking for a simple concise generic C99 version that I can easily adapt
into my application without having to look all over the place for a
seemingly
unending litany of cryptic "helper" functions. I'm sure I could write my
own
version but I'd rather not go through the pain if I can avoid it.

Thanks,
Ray Mitchell
Nov 14 '05 #1
2 1967

"Ray Mitchell" <Ra*********@MeanOldTeacher.com> wrote
I realize that the source code for vsscanf is available from several
sources, such as GNU. However, all such source code I've found so far is
filled with cryptic (to me) #ifdefs, system stuff, and basically all kinds
of general things related to a particular implementation.

I'm looking for a simple concise generic C99 version that I can easily adapt into my application without having to look all over the place for a
seemingly
unending litany of cryptic "helper" functions. I'm sure I could write my
own
version but I'd rather not go through the pain if I can avoid it.

Plauger, "The Standard C Library". Mr Plauger occasionally contributes to
this ng, so if he's reading this I'm sure he'll be happy to give you more
information.
Nov 14 '05 #2

"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message
news:cn**********@newsg4.svr.pol.co.uk...

"Ray Mitchell" <Ra*********@MeanOldTeacher.com> wrote
I realize that the source code for vsscanf is available from several
sources, such as GNU. However, all such source code I've found so far is
filled with cryptic (to me) #ifdefs, system stuff, and basically all
kinds
of general things related to a particular implementation.

I'm looking for a simple concise generic C99 version that I can easily

adapt
into my application without having to look all over the place for a
seemingly
unending litany of cryptic "helper" functions. I'm sure I could write my
own
version but I'd rather not go through the pain if I can avoid it.

Plauger, "The Standard C Library". Mr Plauger occasionally contributes to
this ng, so if he's reading this I'm sure he'll be happy to give you more
information.


Thanks Malcom. But I did purchase the source code for the generic standard
C and C++ libraries from Dinkumware several years ago. While I'm sure it is
very good software it still is very complex with lots of hooks and
conditionals for various implementations. As such, I've never been able to
build any library from it, but I'm sure that's due to my own ineptitude. I
have also attempted to extract the vsscanf code on several occasions but
have given up each time. The simplest approach may be to simply write a
dedicated vsscanf myself, since I obviously need the practice anyway!

Ray
Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jacek Generowicz | last post by:
:::Title::: A simple text markup utility :::/Title::: :::Section Introduction ::: I'm looking for something to help developers wirte documentation for bits of software they are writing. The...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
2
by: RoSsIaCrIiLoIA | last post by:
Is it good the use of va_arg? ____________________ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> unsigned gcd_my(unsigned a, unsigned b) {unsigned t;
7
by: Ray Mitchell | last post by:
Hello, I realize that the source code for vsscanf is available from several sources, such as GNU. However, all such source code I've found so far is filled with cryptic (to me) #ifdefs, system...
4
by: smshahriar | last post by:
Hi, I want to scan from the following string all the hex numbers and populate an array of integers: 0x27 0x00 0x30 0x00 0x33 0x00 0x36 0x00
3
by: Elliot Rodriguez | last post by:
Hi: I am writing a WinForm app that contains a DataGrid control and a StatusBar control. My goal is to update the status bar using events from a separate class, as well as some other simple...
15
by: gjoneshtfc | last post by:
Hello, I have a simple problem that I just cannot get my head around! I currently have the following line in my ASP recordset: Recordset1.Source = "SELECT * FROM MainTable ORDER BY Price ASC"...
5
by: Joel | last post by:
In the course of my project, I must include some custom logic and would like to integrate a small script language in my application for that purpose. In C++, I used the LUA script language and I...
4
by: Gaijinco | last post by:
I have always used istringstream for inputting data from a string. But I heard someone talking about vsscanf() However from what I can find in the internet is not quite clear if is standard or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.