Search:

Type: Posts; User: krock923

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    27,376

    Sigh, what a pain. I'm probably better off just...

    Sigh, what a pain. I'm probably better off just rewriting the thing to get rid of the global, even if it makes the interface less convenient.

    I might be actually better off using C++ :p
  2. Replies
    5
    Views
    27,376

    Thanks :)

    Thanks :)
  3. Replies
    5
    Views
    27,376

    Global variable in shared library

    If a shared library uses a global variable that is not exported, does each process that uses that library get a copy of that variable?

    For example, in the library in the source for one of the...
  4. Replies
    3
    Views
    14,137

    printf( "%.2f", .650 ); will print .65 ...

    printf( "%.2f", .650 );

    will print .65 substitute the 2 with 3 or however many digits you want. Keep in mind that it will always be that many digits.

    So,

    printf( "%.2f", .656 );

    will...
  5. Replies
    12
    Views
    7,229

    Ouch :p It's finals time and I haven't slept...

    Ouch :p

    It's finals time and I haven't slept much this past week. . .

    Rest assured that it all is correct inside the actual source file. gcc is good about complaining when the code is that...
  6. Replies
    12
    Views
    7,229

    Sorry, I was trying to not show parts that are...

    Sorry, I was trying to not show parts that are unnecessary. To point out your arguments, which are absolutely rational from only seeing that fragment, I'll admit:

    The foo/bar thing was pointed...
  7. Replies
    4
    Views
    2,390

    When that happens, the best thing to do is to...

    When that happens, the best thing to do is to step away from your code for an hour or two.
  8. Replies
    12
    Views
    7,229

    It's something I read in a GNU doc somewhere - I...

    It's something I read in a GNU doc somewhere - I just had to implement it. It calls malloc, checks for the null pointer and kills the program if it finds one.

    I figure if the runtime system can't...
  9. Replies
    12
    Views
    7,229

    Yup, that did it. Thank you for the help. :)

    Yup, that did it. Thank you for the help. :)
  10. Replies
    12
    Views
    7,229

    Yes, bar should = foo. That was just a typo on...

    Yes, bar should = foo. That was just a typo on my part and they are indeed the same values in my code.

    Unfortunately, you don't win at the error guessing game :p Here's the error I get:
    ...
  11. Replies
    12
    Views
    7,229

    Double Pointer Question

    Hi, new to these boards and they seem like a great place to spend some time. I have a question about double pointers to structs that I'm hoping someone can help me out with. If I have a double...
Results 1 to 11 of 11