Search:

Type: Posts; User: birkelbach

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,285

    finbal = endbal + outdep - withdraw; By the...

    finbal = endbal + outdep - withdraw;


    By the time that you get to this line of code endbal hasn't changed, outdep = 0 and withdraw = 0.
  2. Replies
    15
    Views
    2,369

    Going from "I can read HTML..." to iPhone...

    Going from "I can read HTML..." to iPhone developer is not a small step and will take some doing. You won't be able to read a book over the weekend and show up Monday morning as an iPhone developer....
  3. Replies
    10
    Views
    2,794

    Are you sure that free(tmp_real) is correct? It...

    Are you sure that free(tmp_real) is correct? It looks like it should be free(tmp).
  4. My man page says that if any of the exec()'s...

    My man page says that if any of the exec()'s return they will return error, so it seems that both of your programs are functionally identical.
  5. Replies
    9
    Views
    5,089

    Yeah that's the basic idea. It takes several...

    Yeah that's the basic idea. It takes several more instructions on the PIC. i.e. there are no indirect moves, rather a pair of registers to use for indirection, also there are bank select bits that...
  6. Replies
    9
    Views
    5,089

    There are some C compilers, but I've done all my...

    There are some C compilers, but I've done all my PIC programming in MPASM (Assembly Language) so I don't really know. I suspect that the compiler allocates a spot in memory to use as a stack pointer...
  7. Replies
    9
    Views
    5,089

    Most (if not all) of the Microchip PIC...

    Most (if not all) of the Microchip PIC uControllers lack a stack that the programmer can use. There is a stack but it just stores return vectors for subroutines and interrupts. There is nothing...
  8. Replies
    20
    Views
    2,895

    I think I understand what h3ro is asking. Assume...

    I think I understand what h3ro is asking. Assume you have a small microprocessor, some pins on that processor are used to address memory, and another set of pins are there for the data. You connect...
  9. Replies
    1
    Views
    1,982

    Asynchronous Messaging

    I have been working on an application that is basically a server, a client library and a handful of clients. The interface between the clients and the server is functional, meaning that the clients...
  10. Replies
    4
    Views
    3,232

    You also are not actually using the new size1. ...

    You also are not actually using the new size1. You might also want to test the return value from realloc before you reassign your existing pointer.



    new_array = realloc(int_array, size1 *...
  11. There is no substitute for checking the return...

    There is no substitute for checking the return values from any system call. I suspect that the second time that you run this code you'll get an error on bind(). Try closing sockfd on exit and see...
  12. Replies
    5
    Views
    1,833

    You want to compare each character in str1 with...

    You want to compare each character in str1 with the corresponding character in str2. Just use one for() loop, or better yet a while loop. Compare each character, as long as they are the same keep...
  13. Replies
    3
    Views
    2,430

    More than likely it's because you aren't linking...

    More than likely it's because you aren't linking the liberr.o file to the final executable. Just creating a header file won't tell the linker that you have multiple object files nor will it tell the...
  14. Replies
    19
    Views
    2,379

    Yes, assuming that you have it all properly...

    Yes, assuming that you have it all properly allocated.
  15. Replies
    19
    Views
    2,379

    You still seem to be confused by the -> operator....

    You still seem to be confused by the -> operator. It doesn't have anything to do with what is on the right side but what is on the left side. temp->rule->target is likely to cause serious problems...
  16. Replies
    19
    Views
    2,379

    realloc would be better because it is capable of...

    realloc would be better because it is capable of growing the memory allocation but you could allocate some new memory, copy the old pointers into the new array then free the old array.
  17. Replies
    19
    Views
    2,379

    First you need to allocate your array and then...

    First you need to allocate your array and then what you have should work. You may also have a strdup() function that is rather handy in these circumstances.


    array = malloc(sizeof(char *) *...
  18. Replies
    14
    Views
    7,406

    Don't forget to... chdir("/"); ...or the...

    Don't forget to...

    chdir("/");

    ...or the directory that you started the deamon from will be locked until the program is stopped.
  19. Replies
    3
    Views
    2,221

    Symbolic Links

    Many programs are called by symbolic (or hard) links of different names. An example is 'vim.' The executable name is 'vim' but there is usually a symbolic link named 'vi'. The program checks...
Results 1 to 19 of 19