Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. naveenprakashj

    regular expression

    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.
  2. naveenprakashj

    regular expression

    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
  3. naveenprakashj

    independent process

    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...
  4. naveenprakashj

    Function Override

    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. :-)
  5. naveenprakashj

    Function Override

    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...
  6. naveenprakashj

    Function Override

    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...
  7. naveenprakashj

    Require a library for hashing functions

    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.... :-)
  8. naveenprakashj

    2d string arrays

    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...
  9. naveenprakashj

    Problem with malloc

    Have u checked that there is/are no other background process(es) which is/are not eating up the memory??
  10. naveenprakashj

    advantage of views vs tables

    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...
  11. naveenprakashj

    need help converting c=fgetc to integer

    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...
  12. naveenprakashj

    binary numbers

    To convert a string to integer.... char *str; int val; . . . val = atoi(str); cheers
  13. naveenprakashj

    URGENT : GETTING A STATIC VARIABLE ADDRESS DURING COMPILATION

    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
  14. naveenprakashj

    DATE in embedded SQL

    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

Part and Inventory Search

Back
Top