Yatindra, :-)
Thanks a lot for your response. I have used fnmatch (reason being that it is simpler to use. I know that it is used for path matching.. but it does the trick).
I appreciate your response.
Hi,
I need to match a string with a regular expression in c. I am trying to avoid system call.
the regular expression is
[a-z][a-z][0-9]<6 times>[a-z]
Can anyone show me how this can be done useing regexpr.h (i.e. compile and advance/step)
thanks in advance
Hi,
The outlook of my service is as follows....
service_name()
{
.
.
.
/* All the transactions have been successfuly completed */
write2file(); /* can be another service or routine */
tpreturn(success...);
}
I would like to invoke write2file() and immediately make a tpreturn. I dont...
Hey nosferatu!!
I kinda liked ur idea and have implemented it. But with a bit of re-engineering!!
Thankx for ur suggestion. It has been very helpful. :-)
Hey thnx for the solution. But the problem is that I want to use the localtime() within my_localtime again!!! :-)
This will result in an infintie recursive call to my_localtime and I'll b not able to invoke the actual localtime()
Can u pls. come up with any other ideas??
Any feedback is well...
Hi all,
I want to redeclare/redefine a few of the library functions. For. Ex. localtime() of time.h
I have heaps of code wherein localtime() is used. I want to write a wrapper function for localtime as part of the local library which will override the standard localtime(). I dont want to...
Hey Prasanth,
#include<search.h>
U can use hcreate(....) => to create a hash table
hdestroy(...) => destroy the table
hsearch(....) => To search the table.
For more info refer the search.h header file.
Happy programming.... :-)
fscanf() or fgets()(in this case use atoi or some other mehtod to convert the quantity into integer) should be fine!
You can have two different pointer arguments. In ur case the first one is an int array to store the quantity and the second is the char array to store the prodcut.
For Ex.
int...
Oracle documentation should be a good start for u. Once ur fundamentals are strong then you can actualy try out ur own examples like for ex.
1> Have 2 base tables and try to update.
2> Trying to update the key of one of the base tables.
3> Try to insert
etc..
.... nothing will help u like...
hmmmm......... the above solution works only if there are less than 10 links!!!!
If your program reads an integer greater than 9 than it is a potential bug!!!
What I suggest is decare c as a charcter array. Then u can use atoi()
NOTE: atoi expects a character array (vector variable). Not a...
All variables will be allocated memory space with reference to some base location. All this information will be stored in a symbolic table. Until the exe is loaded into the main memory, there is no way of telling the address of any variable.
cheers
I am assuming that u want to seperate the year, month and day from the date string.
In that case u can use the atoi function of c.
For ex.
char * dob; /* date of birth */
int year = atoi(dob+6);
If this is not what u r after... can u pls. b more descriptive.
cheers
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.