Search:

Type: Posts; User: Laerehte

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    412

    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
    346

    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
    1,437

    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
    1,058

    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
    1,058

    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
    1,058

    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
    1,058

    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
    1,058

    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
    1,318

    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
    1,318

    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
    1,318

    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
    1,318

    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
    1,318

    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
    1,318

    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
    6,618

    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