Search:

Type: Posts; User: bobthebullet990

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,380

    GCC Linking against static library

    I'm looking at setting up a simple development environment for an embedded project.

    I want to write unit tests as I code, so I have decided to go with two trees:

    /proj/target (contains project...
  2. In my opinion: while (1) { /* SOME...

    In my opinion:


    while (1)
    {
    /* SOME CODE */
    }


    Is far easier to read than
  3. Replies
    5
    Views
    1,142

    That code is a mess.... Why are you using C++...

    That code is a mess.... Why are you using C++ comments for C programming?

    /* This is a proper C comment */
  4. Replies
    9
    Views
    2,291

    What about packed data? ....You could do it with...

    What about packed data? ....You could do it with one variable
  5. Replies
    1
    Views
    1,301

    Python and Audio...

    Can anyone point me in the direction of some usefull examples or documentation regarding Python pyaudio class?

    I would like to see if I can write audio data to multiple audio channels...
  6. Replies
    7
    Views
    4,383

    Well.. Im guessing it would pad before the digit!...

    Well.. Im guessing it would pad before the digit! as padding after would be stupid! ...So i'm guessing that output would be:

    00000000
    ...
    00000009
    0000000A
    0000000B
    ....
  7. Replies
    7
    Views
    4,383

    I would love to try it! ...would have saved me...

    I would love to try it! ...would have saved me having to post, but I'm on a windows machine with no C compiler!!!!
  8. Replies
    2
    Views
    1,442

    Returning strings from functions

    If I want to return a pointer to a string created within a function, would this be correct:



    char * myfunc(){

    char mystr[128];

    return (mystr);
  9. Replies
    7
    Views
    4,383

    Ok... so if i = 2, would output be: 20000000 ...

    Ok... so if i = 2, would output be:

    20000000

    or would it be

    00000002
  10. Replies
    7
    Views
    4,383

    What does this line do?

    Hi, just reading through some code and got a little stuck as to the format in which this value is writing to a string...




    char string[128];
    int i;

    for (i=0; i<10;i++){
    printf("%08X\n",...
  11. quick question of curiosity about return statements

    Hi... just a quick one...

    what would:



    int somefunc(int x){

    return x * x;
  12. Replies
    8
    Views
    44,809

    Nice one! thanks guys! ...and just one more quick...

    Nice one! thanks guys! ...and just one more quick question...

    If i can do printf("&#37;d", 'a'); to print the denery and printf("%x", 'a'); to print the hex, is it then possible to do:

    sprintf(str,...
  13. Replies
    8
    Views
    44,809

    How do I find the chars position in the ASCII...

    How do I find the chars position in the ASCII table? i.e. how to find that char 'a' is denery value 97 and hex value 61

    thanks.
  14. Replies
    8
    Views
    44,809

    Ascii to Hex

    Is there a function available in C to easily lookup the hex value for an ascii char? I.e. If I wanted to encode so called 'special' chars to their hex values as with URLs;

    so: "hello world"...
  15. Replies
    7
    Views
    1,624

    Ah yes! ...Is there any advantages to using...

    Ah yes! ...Is there any advantages to using sprintf? ...other than its super easy to use!!!!
  16. Replies
    7
    Views
    1,624

    Ah yes! ...I forgot about the \0 at the end! well...

    Ah yes! ...I forgot about the \0 at the end! well pointed out there!!!! ...I was taking the . into consideration there - so the length would have been 13 + the '\0' char!

    Thankyou for putting it...
  17. Replies
    7
    Views
    1,624

    Would that not only overflow if the array was set...

    Would that not only overflow if the array was set to less that 12 chars in length? ...I'm assuming with str set to a length of 15 it would not overflow considering you are wanting to print:
    ...
  18. Replies
    7
    Views
    1,624

    sprintf

    Hi all...

    Just a quick question; What are the key issues with using sprintf; I'm guessing that it is array overflow? ...Just doing a little bit of revision for a job interview I have later this...
  19. Replies
    15
    Views
    4,897

    wooops!!! sorry!!! not platform!!! I meant...

    wooops!!! sorry!!! not platform!!! I meant language!!! I have written and read so much today im confusing myself!!!
  20. Replies
    15
    Views
    4,897

    Choosing a development platform

    Hi everyone! ...I was wandering if anyone can make any points other than the following regarding factors related to choosing a platform for your application!

    - Execution speed [essential for...
  21. Replies
    64
    Views
    12,757

    nope... its an external DSP board, the Texas...

    nope... its an external DSP board, the Texas Instruments 6711 DSK, but with the PCM3003 Audio daughter card to get sampling rates of 48khz cause onboard codecs are only 8khz which isn't good for...
  22. Replies
    64
    Views
    12,757

    thanks! ...For my final year undergrad project,...

    thanks! ...For my final year undergrad project, I'm doing a real-time audio effects processor; this uses some specialised DSP hardware that connects to the host machine via parrellel cable; I know...
  23. Replies
    13
    Views
    2,308

    yes... and me also!!! i remember that problem!!!...

    yes... and me also!!! i remember that problem!!! ...a simple scanf() sorts it out! ...either that or just run it on linux and output is on the shell!!! far easier!
  24. Replies
    64
    Views
    12,757

    Speed of C++

    Hi!!! ...after reading a few debates on the net about execution speeds, is C++ really faster than Java? ...It appears that some believe it is and that others believe it depends on the job of the...
  25. Replies
    1
    Views
    1,078

    BIG Problems!!!

    Hi again people!!! ...I have gone into a far smaller scope here with my problem, but after hours of messing around have literally got nowhere!!!! here is a small compilable program to show the error!...
Results 1 to 25 of 124
Page 1 of 5 1 2 3 4