Search:

Type: Posts; User: Sloede

Search: Search took 0.00 seconds.

  1. You're kidding me! That answer was bloody...

    You're kidding me! That answer was bloody awesome! Thank you very much!

    I have to implement an algorithm in C and it uses some really basic functions in each step (like a one-line expression). But...
  2. Is an inline function really the same as a macro?

    I'm wondering if an inline function is really the same as a preprocessor macro - just with some advantages like type checking et cetera.

    Would that mean if I define

    inline void double_it(int a)...
  3. That makes sense! Especially when there's no...

    That makes sense! Especially when there's no obvious reason for a NULL-byte, there shouldn't be a great loss of information by changing it to some other byte. I'll probably choose some non-printable...
  4. But how would you suggest to rewrite the regexing...

    But how would you suggest to rewrite the regexing functions? Go through the source code and change everything which doesn't fit?

    Seems like hell of a lot work :)

    But if you state that this is...
  5. Your right, but that is only true for...

    Your right, but that is only true for field-names. The field-body may contain _any ASCII char except CR/LF and the message body may contain ALL ASCII chars - and that's the problem I have:

    How to...
  6. Where did you find that anything which is not...

    Where did you find that anything which is not printable will be encoded?

    I just found that in RFC 822:



    That means to me that NULLs can very well be part of the header-field-contents or the...
  7. How to work with strings containing possibly several NULLs

    I am working on a mail environment which requires me to retrieve mails from a POP3 server. For everyone unfamiliar with how the POP works:

    You issue CRLF-terminated commands and retrieve answers...
  8. Replies
    4
    Views
    2,296

    Thx people for not answering my questions. Now,...

    Thx people for not answering my questions. Now, after nobody gave me any hints I had to find it out myself - it took me a while but I managed to do it and now I learned more about the whole matter. I...
  9. Replies
    4
    Views
    2,296

    Actually, it's still not working out for me....

    Actually, it's still not working out for me. Statfs tells me that I only have some 435000 free blocks left while df tells me that there are for more than 2 mio. free blocks available. Does anyone...
  10. Replies
    4
    Views
    2,296

    Phew, I just mangled through the whole df.c code...

    Phew, I just mangled through the whole df.c code just to find out that it's using the statfs function to gather all the needed data :)

    My only remaining question (as far as linux is concerned):...
  11. Replies
    4
    Views
    2,296

    Get information about the hard disk

    I'm trying to get information about the harddisk usage, similar to the output generated by "df"

    I actually only need the number of free bytes available on the current mounting point (where the...
  12. Replies
    2
    Views
    1,347

    First, thanks for answering my request. The...

    First, thanks for answering my request.

    The reason why I thought to use the memory or the mmap functions was that they seem to be easier and more efficient to use. But as you suggested, I'll find...
  13. Replies
    2
    Views
    1,347

    How much memory may I use?

    I want to implement a mail download function for an own POP3 client (please no shoutings "use a library" as that's not a convenient solution for me) for linux. The mails should be downloaded and then...
Results 1 to 13 of 13