Search:

Type: Posts; User: Laerehte

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    9,078

    If you want to continue the loop through an...

    If you want to continue the loop through an "invalid input". One other than 'r','p','s'. The do while loop will need some logic work.


    while ((response1 == 's' || response1 == 'r' || response1 ==...
  2. Replies
    3
    Views
    5,622

    Why not research, then write the code. If you...

    Why not research, then write the code. If you have problems along the way. I'am sure one of the many talented people around here would nudge you in the right direction.
  3. Replies
    10
    Views
    6,231

    do{ fscanf(q,"%s %d", ledger.last_name,...

    do{
    fscanf(q,"%s %d", ledger.last_name, ledger.account_number);
    printf("%s %d", ledger.last_name, ledger.account_number);
    }
    while(!feof(q)); // <--------
    }


    Your loop is waiting...
  4. @Salem Yeah, i do remember that using globals...

    @Salem
    Yeah, i do remember that using globals should be kept to an absolute minimum. I think it sprouted from a compiling error that I was wobbling my way through (i definitely should have caught...
  5. main.c #include #include...

    main.c

    #include <linux/kernel.h>
    #include <linux/module.h>
    #include <linux/init.h>
    #include <linux/sched/signal.h>
    #include <linux/sched.h>


    struct task_struct *task; /* ...
  6. @Salem Thanks for the grep reminder! I don't...

    @Salem
    Thanks for the grep reminder! I don't know why I didn't start with that :/ . I did grep my way around the VM, and finally found the for_each_process() definition. Which for some reason is in...
  7. Kernel module - List all processes / process information.

    Hey guys it's been awhile. Just started delving into a book "Operating System Concepts". I'm on chapter 3 Process concepts, in this chapter the end assignment is to create a kernel module that...
  8. Replies
    7
    Views
    5,711

    Ok I finally got it to work with C code WOOO! i...

    Ok I finally got it to work with C code WOOO! i uninstalled all the new libs and found an .sh file someone wrote for 2.4.10 openCV
    *DISCLAIMER THIS IS NOT MY CODE* I take no credit whatsoever.

    ...
  9. Replies
    7
    Views
    5,711

    Hmm that legacy lib wasn't included with the...

    Hmm that legacy lib wasn't included with the install. I'll have to see if i can get it somewhere. Using that prototype did work which was clever, but it still pulled up cvpointFrom32f function error....
  10. Replies
    7
    Views
    5,711

    Output for pkg-config --libs --cflags opencv: ...

    Output for pkg-config --libs --cflags opencv:


    -I/usr/local/include/opencv -I/usr/local/include -L/usr/local/lib -lopencv_shape -lopencv_stitching -lopencv_objdetect -lopencv_superres...
  11. Replies
    7
    Views
    5,711

    Tried with and without the second set of headers....

    Tried with and without the second set of headers. While using the pkg command I did get a different error, but whichever way I include the headers it still gave me the same one.


    gcc sample.c -o...
  12. Replies
    7
    Views
    5,711

    Second Lab with HFC.

    Hey guys back with another one X.x . I finally finished the chapter in HFC I was on, and got excited to try the Lab at the end. Basically you use OpenCV libs to create a theft security device out of...
  13. Replies
    11
    Views
    4,296

    I'll have to do a little more reading in the make...

    I'll have to do a little more reading in the make manual to understand that :P.
  14. Replies
    11
    Views
    4,296

    Reading the code you posted is actually a lot...

    Reading the code you posted is actually a lot easier then what I had worked on algorism :p .I also really like that clean target. It saved my fingers a lot of typing :D. I re-configured the Makefile...
  15. Replies
    11
    Views
    4,296

    Just for fun I fiddled around with the Makefile...

    Just for fun I fiddled around with the Makefile and options to see what works/doesn't with different prerequisites/recipe combinations. It seems that if your' Makefile is in a different directory it...
  16. Replies
    11
    Views
    4,296

    Wow thanks for the replies guys! I had no idea...

    Wow thanks for the replies guys! I had no idea that you had to use the -l (lib) switch in the recipe with the -L (folder). I thought having libs/libcal.a in the prerequisites was enough. Guess not! I...
  17. Replies
    11
    Views
    4,296

    Thanks algorism for the reply! Could you expand...

    Thanks algorism for the reply! Could you expand on the tread_mill being first a bit. I'm just assuming you mean?

    gcc -o tread_mill -L./libs/libcal.a treadmill.o
    Also my Makefile now looks like:
    ...
  18. Replies
    11
    Views
    4,296

    C programming Makefile.

    Hey guys my first help thread. Hopefully it's on topic. Basically I'm reading Head First C and coding along. I'm currently at a Makefile exercise for a simple calorie calculator output. Heres the...
  19. Replies
    62
    Views
    35,070

    C: heheh #include int main() {...

    C:
    heheh


    #include <stdio.h>
    int main()
    {
    short fun=1;
    if(fun == 1)
    printf("%hi",fun);
Results 1 to 19 of 20