Search:

Type: Posts; User: plan7

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,618

    Hi the third party application is the RSA...

    Hi

    the third party application is the RSA Authentication Manager from RSA Security.
    GetLastError returns 2, meaning ERROR_FILE_NOT_FOUND.

    I noticed that the filenames have Unicode characters,...
  2. Replies
    4
    Views
    1,618

    opening file problem, encoding?

    Hi all,

    got another problem using open of ifstream or fopen or whatever on a file in my filesystem.
    My program isn't able to open these files, they are encoded ... strange? At least for me :)
    ...
  3. Replies
    3
    Views
    1,544

    Resovled that one. It actually just was the...

    Resovled that one. It actually just was the command line call that was wrong. Windows prepended a '+' to the actual filename...corrected that, worked. My bad...

    Best regards
    Rafael
  4. Replies
    3
    Views
    1,544

    Hi will try that for once. Well, I must...

    Hi

    will try that for once. Well, I must convert many of these files to another encoding, as well as the filename. Doing that by hand...well, no thanks :)

    Best regards
    Rafael
  5. Replies
    3
    Views
    1,544

    fopen - strange encoded filename

    Hi all

    got a strange problem here on my Windows machine. I need to open/read a file, but the filename is strangely encoded, so fopen fails everytime with a "no such file or directory". It doesn't...
  6. Replies
    1
    Views
    959

    Ok, got the answer myself, could hit me myself...

    Ok, got the answer myself, could hit me myself now...

    As I pointed out, this:


    is because it's a little endian machine. "this" interpreted as an integer.


    This is actually as my hexdump...
  7. Replies
    1
    Views
    959

    Storing values, internal mechanisms?

    Hi all

    I got a silly question...I actually came to this "problem" when looking at endianess.
    I have the following test-code:


    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
  8. Replies
    0
    Views
    1,366

    MD5 search, speed...

    Hi there

    I'm trying to speed up MD5 search (brute force) a little. Why? Because it's interesting :)
    I wanted to have a function that generates all possible words of lenght 'x' that can be built...
  9. Thread: Unicode - UTF-8

    by plan7
    Replies
    13
    Views
    4,129

    Ok,...thanks :) Well, it seems that it does not...

    Ok,...thanks :)
    Well, it seems that it does not often happen that multibyte-encoded characters are used, otherwise we would have mess today...
    At least text stored in UTF-8 and read by software not...
  10. Thread: Unicode - UTF-8

    by plan7
    Replies
    13
    Views
    4,129

    Sure there is. There are multi-byte sequences and...

    Sure there is. There are multi-byte sequences and these will not make sense when looking at them byte by byte.
    It would not be possible to support the whole range of Unicode with just having one...
  11. Thread: Unicode - UTF-8

    by plan7
    Replies
    13
    Views
    4,129

    Unicode - UTF-8

    Hi all

    This post is actually related to programming, but I think it's neither C nor C++ specific or similar. I read a lot about Unicode and the UTF-8 character coding system today but there are...
  12. Replies
    5
    Views
    4,006

    Ok then, that sounds good...:) thanks!

    Ok then, that sounds good...:)
    thanks!
  13. Replies
    5
    Views
    4,006

    Sure thanks, I know that. But do all header...

    Sure thanks, I know that.
    But do all header files make use of that guard? If not it wouldn't be of use here.
    I just looked in the <openssl/aes.h> header file and saw that they're using the guard,...
  14. Replies
    5
    Views
    4,006

    Avoiding multiple includes

    Hi all

    I met a 'little' problem concerning multiple includes of the same header file:
    Let's say I have the four files
    - user.c
    - user.h
    - capture.c
    - capture.h

    The file 'user.h' holds the...
  15. Replies
    17
    Views
    25,665

    I finally found something written down in a book...

    I finally found something written down in a book online that confirms what we discussed here, if anyone want to read it:



    Rafael
  16. Replies
    17
    Views
    25,665

    Yes sure, but within that one: struct xy {...

    Yes sure, but within that one:


    struct xy {
    unsigned int a:4;
    unsigned int b:4;
    };

    we just have one byte, so no ordering. That's actually what I meant. I read one byte from the package...
  17. Replies
    17
    Views
    25,665

    Yes, I can follow you so far. Makes totally...

    Yes, I can follow you so far. Makes totally sense! But what about


    struct test {
    unsigned int a:4;
    unsigned int b:4;
    }

    Here I just have one byte finally, 4 bits & 4 bits...so no byte...
  18. Replies
    17
    Views
    25,665

    Ok, that's what I thought. But nevertheless I...

    Ok, that's what I thought. But nevertheless I wonder why this strange 'method' is used within Linux Source, and also FreeBSD as I just found out, and possibly even more ... :)

    Rafael
  19. Replies
    17
    Views
    25,665

    Well, that makes sense (gcc packing the bits in a...

    Well, that makes sense (gcc packing the bits in a different order).
    But what still bothers me: There is nothing like that defined in the C standard, at least as I know?
    So I might get wrong results...
  20. Replies
    17
    Views
    25,665

    Bitfields, Bit/Little Endian

    Hi all

    I'm currently looking at different structs that can represent an IP header. Now I found the following two things:


    /*
    * From /usr/include/netinet/in.h
    */
    struct iphdr
    {
  21. Replies
    2
    Views
    1,496

    Hm...ok, that makes sense now. Many thanks! :)

    Hm...ok, that makes sense now. Many thanks! :)
  22. Replies
    2
    Views
    1,496

    Evaluationof expressions

    Hi all

    I'm just re-reading K&R and there's something I don't understand, Appendix A7. Expressions:


    Looking at this:


    int a = 5;
    int b = ++a;
Results 1 to 22 of 22