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...
Type: Posts; User: bobthebullet990
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...
In my opinion:
while (1)
{
/* SOME CODE */
}
Is far easier to read than
That code is a mess.... Why are you using C++ comments for C programming?
/* This is a proper C comment */
What about packed data? ....You could do it with one variable
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...
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
....
I would love to try it! ...would have saved me having to post, but I'm on a windows machine with no C compiler!!!!
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);
Ok... so if i = 2, would output be:
20000000
or would it be
00000002
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",...
Hi... just a quick one...
what would:
int somefunc(int x){
return x * x;
Nice one! thanks guys! ...and just one more quick question...
If i can do printf("%d", 'a'); to print the denery and printf("%x", 'a'); to print the hex, is it then possible to do:
sprintf(str,...
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.
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"...
Ah yes! ...Is there any advantages to using sprintf? ...other than its super easy to use!!!!
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...
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:
...
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...
wooops!!! sorry!!! not platform!!! I meant language!!! I have written and read so much today im confusing myself!!!
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...
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...
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...
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!
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...
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!...