Search:

Type: Posts; User: clancyPC

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I think I have a workaround. I have added the nvl...

    I think I have a workaround. I have added the nvl function call into the select statement so that it returns a known value whenever it would return a NULL. Hopefully this will sort it out.
    Still...
  2. Oracle OCI programming returning null value into define variable

    Hi,
    I have a query that returns a value into a define variable, but if there is no value in the database for that field it inserts null. On Solaris this works fine, but I have migrated my code to...
  3. Grumpy, I see what you are doing, its...

    Grumpy,
    I see what you are doing, its effectively in decimal terms, reading the first three digits and then multiplying by 1000 before getting the next three digits. There is probably a more...
  4. Converting from 2's complement to decimal integer

    Hi,
    I am converting data from an asn1 stream but my problem is with converting integer values. Asn1 works on a Tag, Length, Value (TLV) notation, so an integer can be stored in a variable length...
  5. Replies
    3
    Views
    3,048

    Its alright, my brain has woken up again, all...

    Its alright, my brain has woken up again, all done.
  6. Replies
    3
    Views
    3,048

    I thought there was an STL in C as well? If not...

    I thought there was an STL in C as well? If not then just replace STL with standard library of functions or whatever it is you want to call it; fred, george, betty its entirely up to you.
  7. Replies
    3
    Views
    3,048

    Find and replace within a string?

    Hi,
    Is there a STL function that lets me pass a full string, a substring to find and a substring to replace it with?
    I will illustrate with an example:
    I have a string like this:...
  8. Replies
    3
    Views
    1,375

    In this case it doesnt matter because each line...

    In this case it doesnt matter because each line is a single record, and no two lines are dependant on each other, so each line can be processed independently to any other. I wanted to check that...
  9. Replies
    3
    Views
    1,375

    Accessing a file with threads

    If I were, in the main() function, to open a file, then kickoff a number of threads that would all access the file with each thread reading in a line each using fgets (which says that it is thread...
  10. Replies
    0
    Views
    1,971

    Using dates in Pro*C

    I have written a Pro*C program to do inserts into an Oracle database, but the data includes dates and times. The Pro*C manual is a bit sketchy on the subject of using dates on insert statements, so I...
  11. Replies
    7
    Views
    2,936

    Sorry that is what I meant by 'handles'. I...

    Sorry that is what I meant by 'handles'. I assume that each terminating child process goes into a queue that is controlled by the OS, and wait takes the next one off the queue when it is called (if...
  12. Replies
    7
    Views
    2,936

    Thanks all. In pseudocode I have: for 0 to...

    Thanks all.
    In pseudocode I have:

    for 0 to maxchildren
    fork child
    Do stuff
    increment counter

    followed by
  13. Replies
    7
    Views
    2,936

    Forks v's threads

    I have a program that uses fork to generate a number of child processes. Without going into too much detail it generates 19 child processes that go off and do their thing and exit when they have...
  14. Replies
    4
    Views
    2,892

    Yes, compressed with the compress utility to...

    Yes, compressed with the compress utility to produce a .Z file. Have not tried zlib, but I have had a look and there is a zlib.h in /usr/include. I will do a google search and see if I can turn up a...
  15. Replies
    4
    Views
    2,892

    Reading compressed files

    Hi,
    Does anyone know of a library on Solaris that has functions to allow you to read from a compressed file? I have a large number of compressed files that I need to process. I could write a...
  16. Replies
    5
    Views
    1,389

    Valenok, Thanks for the reply. Basically you are...

    Valenok,
    Thanks for the reply. Basically you are saying I need to edit all my code to remove the backslashes, but the format can remain the same?
    Oh bugger. Thats not a small job.
    Thanks
  17. Replies
    5
    Views
    1,389

    Sun Studio 10 issue

    Hi,
    The company has just bought Sun Studion 10 for a new development environment, whereas before I was using Sun Workshop 3. Unfortunately there are differences in the way that the two compilers...
  18. Replies
    3
    Views
    1,609

    Cant do, there will be string fields in the...

    Cant do, there will be string fields in the stucture as well. Which I think answers my question in a slightly different way. Because unless I program in the loop which fields are strings and which...
  19. Replies
    3
    Views
    1,609

    Cycling through the fields in a structure

    Is it possible to increment through the fields of a structure using an index value.

    If I had a structure like:



    typedef struct {
    int field1;
    int field2;
    int field3;
  20. Replies
    7
    Views
    1,359

    Thank you, I did have a variation that had the...

    Thank you,
    I did have a variation that had the string null terminated, but it did not make any difference. The output was the same for both cases.
    The union does work, but I suppose what I was...
  21. Replies
    7
    Views
    1,359

    Casting strings to integers and back

    Can anyone explain why this is happening. First I will include the code that I am running.



    #include <stdio.h>

    int main(void)
    {
    char var1[4] = "FP10";
    int var2 = 0;
  22. Replies
    1
    Views
    2,284

    displaying binary output

    I have a four byte binary field in a stream buffer that I wish to display in binary and decimal. Any suggestions? My mind has gone completely blank.
    Thanks
  23. Replies
    0
    Views
    4,309

    Managing shared memory lookups

    I have a program that loads a very large avl tree and then opens a shared memory area and waits for requests (with semaphores to order the queueing). The client program connects to the shared memory...
  24. Replies
    4
    Views
    1,152

    For determining the failure reason and returning...

    For determining the failure reason and returning a more meaningful message to the log file. I havent come across strerror() before, but looking at the man page it looks like it will do what I want. ...
  25. Replies
    4
    Views
    1,152

    I was afraid that you were going to say that....

    I was afraid that you were going to say that.
    There must be some other return codes in errno.h that I can also use, I will just have to trawl through that.
    Thanks
Results 1 to 25 of 41
Page 1 of 2 1 2