Search:

Type: Posts; User: GreyMattr

Search: Search took 0.00 seconds.

  1. Thread: STDIN stdout

    by GreyMattr
    Replies
    2
    Views
    3,060

    STDIN stdout

    maybe someone can help me, I am writting a command line interface for an embedded device... kind of like a user shell, it just reads user input parses it, and spits back some output.

    here is my...
  2. Replies
    2
    Views
    2,449

    thanks allot... worked like a charm...

    thanks allot...

    worked like a charm...
  3. Replies
    3
    Views
    1,511

    ref

    I could send you some of my code but I'm not sure you'd know how to use it at this point...

    here are two awesome pages to get you started with TCP/IP socket network programming...

    windows...
  4. Replies
    2
    Views
    2,449

    auto build date

    does anyone know how I can include the current build date as a variable in my code???

    I'd like to use it as a somewhat dirty revision numbering system.

    thanks

    Matt
  5. Replies
    2
    Views
    2,423

    rs232 Serial driver

    It is for an embedded system that will run on a 186 processor...

    the OS is MicroC/OS
    uCOS

    G
  6. Replies
    2
    Views
    2,423

    rs232 serial driver

    I am trying to put together some code for an rs232 serial / tty driver, does anyone know where I can find some help on-line?

    thanks..

    G
  7. a hack

    I know most windows socket code online uses makeword for the WSA startup function,

    but you should be able to stuff a hex value in there as well.

    <hr>
    #include <stdio.h>
    #include <winsock.h> ...
  8. Thread: vim

    by GreyMattr
    Replies
    2
    Views
    1,253

    here is my .vimrc it works well

    my .vimrc file is attached, it does C syntax highlighting.

    ~GM
  9. Replies
    6
    Views
    3,348

    help maybe

    So this doesn't look like your code too much but I think it might work just as well.



    int magic[25][25];
    memset( magic, 0, sizeof(magic));


    or
  10. Thread: Loop?!

    by GreyMattr
    Replies
    5
    Views
    1,077

    just going off the top of my head, but I'm always...

    just going off the top of my head, but I'm always game for a better solution...

    thanx.

    ~GM
  11. Thread: Loop?!

    by GreyMattr
    Replies
    5
    Views
    1,077

    I think...

    I'm not %100 sure but I think I know this one....

    your do-while loop will never exit because you are breaking when value == "x"...

    right ???

    if I look at your code value looks like a Ten...
  12. Thread: tree trouble

    by GreyMattr
    Replies
    3
    Views
    1,200

    hmmm?

    I think you need to be more specific...
    I can think of ways to use a binary tree to do this for searching functions, but I think it would be unwise of me to recommend a solution without knowing...
  13. Replies
    2
    Views
    1,431

    another option

    the fprintf is a good option. If you prefer to work with file handles instead of file streams ( pipe info, write to sockets, or serial ports ) though, you can write an fdprintf function like this.
    ...
  14. Replies
    3
    Views
    5,632

    just to expand further

    I agree just test the value of ch...

    something like this should work groovy..

    while( read(file, &ch, 1) > 0 ){
    if( ch == EOF ){
    // do nothing
    }
    if( ( ch > 31) && ( ch < 127 )){ // ...
  15. Replies
    2
    Views
    1,266

    I'm not sure but you may want to try something...

    I'm not sure but you may want to try something like this

    void convert( char ch)
    {
    int i;
    for(i=0;i<8;i++){
    if( ch & (1 << i)){
    printf("1");
    }
    else{
  16. Replies
    27
    Views
    2,845

    Linux Editors

    if you use Linux, you have to either be somewhat familiar with VI, Vim, or Emacs. Vim is my favorite, and can be totally customized as well as Emacs, but customization is like learning a hole new...
  17. Thread: i/o parsing

    by GreyMattr
    Replies
    2
    Views
    1,062

    I like the idea above, but if you really wanted...

    I like the idea above, but if you really wanted to make it good you'd create 3 functions...

    get_line( int filed );
    count_words( char *line );
    get_word( char *line, int wordnumber);

    then you...
  18. Thread: Question

    by GreyMattr
    Replies
    5
    Views
    1,085

    easy

    change these 3 lines

    puts(name[i+1]);
    printf("Password: ");
    puts(name[i+3]);

    to

    puts(temp[i+1]);
    printf("Password: ");
  19. suggestions

    I guess I don't completely understand your problem.

    if you want to make your code portable on all platforms, Unix, Linux, Win, Dos, you should be as ansi C compatible as possible ( just a coding...
Results 1 to 19 of 19