473,379 Members | 1,190 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,379 software developers and data experts.

Parsing Function C..urgent

I Have one doubt in parsing function in c...

In my program i am using one object identifier like this 1.3.6.7.184

now i want to change like this using parsing function 1_3_6_10_184..

any idea..pleas elet me know..this is very urgent

OS:LINUX(CENT OS 4.3)
LANGUAGE (C)
SOURCE CODE(NET-SNMP)
Feb 13 '07 #1
1 1241
horace1
1,510 Expert 1GB
I Have one doubt in parsing function in c...

In my program i am using one object identifier like this 1.3.6.7.184

now i want to change like this using parsing function 1_3_6_10_184..

any idea..pleas elet me know..this is very urgent

OS:LINUX(CENT OS 4.3)
LANGUAGE (C)
SOURCE CODE(NET-SNMP)
you can search the string for . and replace them with _
if using C see
http://www.cplusplus.com/strchr

or C++ see
http://www.cppreference.com/cppstring/index.html
Feb 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
4
by: ralphNOSPAM | last post by:
Is there a function or otherwise some way to pull out the target text within an XML tag? For example, in the XML tag below, I want to pull out 'CALIFORNIA'. ...
8
by: Wallace | last post by:
Hai all, In VC++, CString str = " 4 76 1"; int nNo = atoi(str.Mid(0,8)); it returns nNo = 4 as output.... it returns the first integer occurence and neglects the remaining character....
1
by: Wallace | last post by:
Hai all, In VC++, CString str = " 4 76 1"; int nNo = atoi(str.Mid(0,8)); it returns nNo = 4 as output.... it returns the first integer occurence and neglects the remaining character....
4
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. It is greatly appreciated. I am working with Plimus for licensing my software. I can communicate with the server and I'm getting responses in XML....
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
1
by: CreativeMind | last post by:
hi all, i m using this function in javascript but there is problem. function thousandseparator(val) { var regexpr=new RegExp('(-?+)({3})'); while(regexpr.test(val)) {...
7
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using this code to get groups for a user and getting a error (5) on the GetAuthorizationGroups() function . There are two domains. This function works on the local domain but does not work...
3
by: tokcy | last post by:
Hi everyone, I have class and whenever i am running to this class it shows error like Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.