Search:

Type: Posts; User: Alegomaster

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,866

    Dont use gets()

    You should replace gets with scanf() or fgets().
  2. Replies
    5
    Views
    16,869

    Static library vs Dynamic library

    Can someone tell me the difference of a Static C library, and a dynamic library, and when to use each one of them.
  3. Replies
    13
    Views
    2,326

    Still cant figure out

    I really need some help soon if anybody minds.
  4. Replies
    13
    Views
    2,326

    Nope it doesn't work right now. EDit did some...

    Nope it doesn't work right now.

    EDit did some debugging. Figured out that the array never receives any thing. Just some random junk.
  5. Replies
    13
    Views
    2,326

    Help

    One more issue. It won't display data being received. I am going to debug tomorrow, but I would want early opinions on what to do
  6. Replies
    13
    Views
    2,326

    Currently

    #define SerialPort "/test.txt"
    #define ConfigFileLocation "/dev/cu.PL2303-00004006"
    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <unistd.h>


    void Send_String(char...
  7. Replies
    13
    Views
    2,326

    Sorry the Goto calls are just there for know ...

    Sorry the Goto calls are just there for know later, I might change it

    Working on it now
  8. Replies
    13
    Views
    2,326

    #define SerialPort "/test.txt" #define...

    #define SerialPort "/test.txt"
    #define ConfigFileLocation "/dev/cu.PL2303-00004006"
    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <unistd.h>
    // "SerialPort" is location of...
  9. Replies
    13
    Views
    2,326

    nope it doesn't work

    I get the file that is returned from fopen as NULL. I should also mention that I passed the string through a function (that I made) as an argument, and then used fopen from inside that function
  10. Replies
    13
    Views
    2,326

    fopen() arguments help

    For the first argument is it possible to use a predefined string in it.
  11. Replies
    5
    Views
    1,000

    Working on it

    Okay I am starting to check out stat. Fopen was causing a Segmentation fault on Ubuntu, so thats why I wanted help.

    Edit: I can use some help with stat. I'm not that good with structs yet.
  12. Thread: help!

    by Alegomaster
    Replies
    8
    Views
    1,228

    Thats okay alot of People make that mistake.

    Thats okay alot of People make that mistake.
  13. Thread: help!

    by Alegomaster
    Replies
    8
    Views
    1,228

    http://cboard.cprogramming.com/c-programming/25765...

    http://cboard.cprogramming.com/c-programming/25765-posting-code-read-first.html

    First of all
  14. Replies
    7
    Views
    960

    fprintf is not declared properly. Instead use...

    fprintf is not declared properly. Instead use printf("invalid");.
    Judging on your code you should not learn fprintf() yet.
  15. Replies
    5
    Views
    1,000

    Help with file checking

    Is there any way to check if a file exists. I usually use a Mac, but for specific reasons I have to use Linux.
  16. Replies
    7
    Views
    960

    First of all read this:...

    First of all read this:
    http://cboard.cprogramming.com/c-programming/25765-posting-code-read-first.html

    You need to read this about posting code.


    What you should do is read about loops....
  17. Replies
    24
    Views
    5,978

    Okay I have one more issue. The memory will not...

    Okay I have one more issue. The memory will not be freed from the free() command.





    int *arrayp;
    int *arrayq;

    arrayp=Recieve_Data(); // Second Function
  18. Do something with quantum computing. Its a brand...

    Do something with quantum computing. Its a brand new world with that.
  19. Replies
    18
    Views
    3,248

    And jailbreak it (its legal) so you can run...

    And jailbreak it (its legal) so you can run android.
  20. Replies
    24
    Views
    5,978

    One more issue

    Dynamic Memory does not seem like not working properly.



    //main.c


    #include <stdio.h>
    #include <stdlib.h>
    #include "Serialport.h"
  21. Replies
    24
    Views
    5,978

    First I tried to pass it as an array but it did...

    First I tried to pass it as an array but it did not work, so I decided for now to call each by itself.
    Second I did test, and they work.
    Third I will take your other suggestion, and write the code...
  22. Replies
    24
    Views
    5,978

    Mem help

    Okay I tried to do the mem, and this is the best I got.

    I don't get why I have to use Realloc(), or EOF in the file.




    //main.c
  23. Replies
    24
    Views
    5,978

    Okay I tried it but It did not work. ...

    Okay I tried it but It did not work.



    //main.c


    #include <stdio.h>
    #include <stdlib.h>
    #include "Serialport.h"
  24. Replies
    24
    Views
    5,978

    Thanks trying it now. Didn't know you had to...

    Thanks trying it now.

    Didn't know you had to use dynamic memory.
  25. Replies
    24
    Views
    5,978

    Can you give me a small example, I don't have a...

    Can you give me a small example, I don't have a book on C right now. (Got it from the Library)
    So I can't see any examples. Thanks for the info right now.
Results 1 to 25 of 31
Page 1 of 2 1 2