Search:

Type: Posts; User: techevo

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,290

    just a quick question?

    Does anybody know how Vi (Vim) creates the welcome screen,

    I wish to implement something similar into my application.


    thanks

    techevo.
  2. Replies
    4
    Views
    4,643

    cheers yep, got it working great :D ...

    cheers yep,

    got it working great :D


    techevo
  3. Replies
    4
    Views
    4,643

    detectine OS type?

    Hi all,

    For my little program to run, it needs to open a file, read the contents then display it. easy yes...

    However I need to hardcode this path of the file in.

    But the location of the...
  4. Replies
    2
    Views
    3,183

    Debugging an IF statement

    Hi all,

    for my little program i need a check for input of "cd" the change direction command in linux.

    for some reason, this code is giving me a segmentation fault when myarray contains...
  5. Replies
    6
    Views
    25,345

    Yes i am creating my own shell. Thank you for...

    Yes i am creating my own shell.

    Thank you for all the suggestions,

    the result of



    command -a
  6. Replies
    6
    Views
    25,345

    the command i use to get this was: ls >...

    the command i use to get this was:



    ls > file.txt
  7. Replies
    6
    Views
    25,345

    write error with a bad file descriptor

    Hi all,

    I am playing around with redirection and am getting the below error message?

    can anyone tell me a cause for this so i can fix it?



    ls: write error: Bad file descriptor
  8. Replies
    10
    Views
    5,919

    ok i understand that :) how can i assign...

    ok i understand that :)

    how can i assign memory to array dynamically though?

    or am i misunderstanding something else? :S

    techvo
  9. Replies
    10
    Views
    5,919

    ok i understand that :) how can i assign...

    ok i understand that :)

    how can i assign memory to array dynamically though?

    or am i misunderstanding something else? :S

    techvo
  10. Replies
    10
    Views
    5,919

    char *string; then use readline to take input...

    char *string;

    then use readline to take input from the command line storing it into string.

    techevo
  11. Replies
    10
    Views
    5,919

    surely if memory has been freed i can use it...

    surely if memory has been freed i can use it again? :S

    here is the code



    array = malloc(sizeof(string));
    array[0] = strtok(string," ");

    for(i=1; i<=...
  12. Replies
    10
    Views
    5,919

    need help with implementing realloc

    Hello all,

    I currently am reading input from the command line.
    everything entered needs to be then put into a 2 dimensional array.
    using strtok to separate each item of the string by a " "...
  13. thanks :D bit cheeky, but does anybody know...

    thanks :D

    bit cheeky, but does anybody know how i can print the contents of an array or the data held by variables??

    but thanks anyway helped :)

    techevo
  14. is there anyway to include a text file with gdb?

    Hello all,

    I need to debug my c code in a debugger. however the file reads the information from a text file for it to execute.

    the syntax is:




    $progname <textfile1>
  15. Thread: struct help

    by techevo
    Replies
    4
    Views
    1,282

    the source code

    this is the course code in complete

    gcc sched.c -o sched

    #./sched <filename>
  16. Thread: struct help

    by techevo
    Replies
    4
    Views
    1,282

    my struct looks like this might be wrong way to...

    my struct looks like this might be wrong way to do it mind

    <code>
    typedef struct {
    char name[12];
    int quantum;
    int priority;
    } processDetails; ...
  17. Thread: struct help

    by techevo
    Replies
    4
    Views
    1,282

    struct help

    hi guys

    i have so far read a file into buffer

    used strtok() to identify each part of the struct

    added these into a struct, printed this struct.

    read the next values into the struct and so...
Results 1 to 17 of 17