Forum: C Nov 25th, 2008 |
| Replies: 1 Views: 1,306 Hello yet again... Anyway, I'm trying to convert a string that has the form of "1097.04", that is, decimal fixed point with two digits after the decimal point. My code currently reads this number... |
Forum: C Nov 24th, 2008 |
| Replies: 3 Views: 2,938 I figured it out..... Thanks! |
Forum: C Nov 24th, 2008 |
| Replies: 3 Views: 2,938 Ahh, I see... Thank you. Well, that small snippet allowed it to stop when needed but now for some reason it's not comparing the last line with the stock_id (MICRO - everything else works perfectly).... |
Forum: C Nov 24th, 2008 |
| Replies: 3 Views: 2,938 Hello again... So, I'm trying to read a file line-by-line and compare the first 5 characters of that line (that was read in) to another character string. If they don't match then it moves on to the... |
Forum: C Nov 24th, 2008 |
| Replies: 7 Views: 541 Ahhh, thank you very much... I figured I should have been using strcpy(), heh. Thanks, I will read that post now. |
Forum: C Nov 24th, 2008 |
| Replies: 7 Views: 541 Ahhhhhhhhhh! Thanks for the clarification on the memory issue and FIFO naming! So, if I instead assign two pointers to char to point to argv[4] and argv[3] THEN concat, I should be alright???
... |
Forum: C Nov 24th, 2008 |
| Replies: 7 Views: 541 Heh... my apologies!
Yeah, I actually tried using the strtok function, using a space as the delimiter and it started to do what I wanted (break the buffer up) but... Hmm, I've forgotten why I... |
Forum: C Nov 24th, 2008 |
| Replies: 7 Views: 541 Sorry, tried to edit it... here's a SHORTER version with OUTPUT.
int main(int argc, char *argv[])
{
char s[MAX_BUFF];
char stock[5];
char cust[4];
char *out;
... |
Forum: C Nov 24th, 2008 |
| Replies: 7 Views: 541 ATTENTION: SKIP WHAT'S WRITTEN IN RED UNLESS YOU WANT TO KNOW EXACTLY WHAT'S GOING ON... NOT NEEDED THOUGH!
Well, let me first ask the general question/problem that's plaguing me in this "Coded... |