Search:

Type: Posts; User: cloudsword

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    2,197

    So this works?, Cuz when I run it, it gives a...

    So this works?,
    Cuz when I run it, it gives a seg fault.
  2. Replies
    11
    Views
    2,197

    Reversing a String, void style

    Good Evening.
    I am trying to recreate the reverse String function. I realize there is a strrev() that does the same thing, but I wanted to create my own. After running into many problems, I...
  3. Replies
    6
    Views
    10,275

    Thanks

    Thanks
  4. Replies
    6
    Views
    10,275

    int CountCharacters(char* String, char Character)...

    int CountCharacters(char* String, char Character)
    {
    int n=sizeof(*String);
    int count=0;
    int i;
    for (i=0; i<n; i++){
    if (*String[i]==Character){
    count++;
    }
    }
  5. Replies
    6
    Views
    10,275

    Difference between Char* X and Char *X

    What is the difference between a Char* X and a Char *X. In my code for homework we were given a Char* X, and when I tried to access it like a pointed to value (i.e.if *X=='y'), it complained about...
  6. Replies
    8
    Views
    6,049

    Thanks CommonTater! I've been working with HDL's...

    Thanks CommonTater! I've been working with HDL's so long that I did not consider using a while loop.
  7. Replies
    8
    Views
    6,049

    and how would I do that code wise

    and how would I do that code wise
  8. Replies
    8
    Views
    6,049

    Waiting for a button release in C

    So I'm writing this program to write into hyperterminal using button presses and here is a snippet of my code


    if (button1==0)//button is pressed
    {
    uart_transmit('L');
    }
    if...
  9. Replies
    2
    Views
    1,749

    Getting the binary out of a char

    Hey
    I am trying to set up an 8051 to connect and transfer data to an RS232 and am using C code to do so.
    I was wondering if there was an easy way to access the ascii binary of the char.
    ie ...
  10. Replies
    15
    Views
    7,999

    Hey I am having issues, this time with strncmp()....

    Hey I am having issues, this time with strncmp(). I have initialized the char arrays like vart helped me to do, and now it is seg faulting for strncmp.
  11. Replies
    15
    Views
    7,999

    I thought that strcat() when it got done, ended...

    I thought that strcat() when it got done, ended the cocatenation with the NULL character.
    By the way, how do you "initialize" an array?
  12. Replies
    15
    Views
    7,999

    Would increasing the size of the buffer that I am...

    Would increasing the size of the buffer that I am using work. Oh and I was using this on a file that was around 5+/- a little bytes, so the size of the arrays that I was using should have been...
  13. Replies
    15
    Views
    7,999

    using strcat(Segmentation Fault)

    ok, so I am writing this code, and I keep getting a seg fault. I went into gdb and it told me that it was seg faulting on the strcat() function.
    here is my code



    #include <string.h>
    #include...
  14. Replies
    2
    Views
    2,847

    CRC Function

    Hello
    I am looking for something in the standard c libraries that would perform a CRC checksum. Is there something like this?
  15. Replies
    3
    Views
    1,092

    Thanks

    Thanks
  16. Replies
    3
    Views
    1,092

    conditional troubles

    I want to be able to get entirely out of a conditional tree. how do I do this?

    Here is sample code


    while(1){ //I want to get back here
    if(/*stuff*/){
    //stuff...
  17. Replies
    7
    Views
    1,632

    nope, still does not work!

    nope, still does not work!
  18. thanks

    thanks
  19. thanks rags I corrected some of my code, but I...

    thanks rags
    I corrected some of my code, but I am still getting the for loop errors
  20. myServer.c:49: error: ‘for’ loop initial...

    myServer.c:49: error: ‘for’ loop initial declaration used outside C99 mode
    myServer.c:55: error: expected expression before ‘!=’ token
    myServer.c:64: error: ‘for’ loop initial declaration used...
  21. Server code Errors that I do not understand

    I've been writing this code for a simple server and am having problems. It says there is something wrong with the way I declared my for loops. I looked at some code I had written previously, and...
  22. Replies
    7
    Views
    1,632

    Seg fault, I do not understand

    I am working on a project and one of the elements within the project is not working as expected. So I wrote a short program to test the functionality.


    #include<fcntl.h>
    #include <stdio.h>...
  23. Thanks, After getting away from my computer, it...

    Thanks, After getting away from my computer, it came to me that I needed to replace i with something like bytesread%linesize;
  24. thus making your string ready for another set of...

    thus making your string ready for another set of 16 chars?
  25. Well, doesn't that function clear your string?

    Well, doesn't that function clear your string?
Results 1 to 25 of 29
Page 1 of 2 1 2