Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. verstrs

    Memory overlay

    It's not clear what you actually want. how about { unsigned char orig[4] = { 0xB1, 0xE3, 0xCC, 0xBB }; unsigned char tmplt[4] = { 0x00, 0x00, 0xF9, 0xDD }; orig[2] = tmplt[2]; orig[3] = tmplt[3]; } or { unsigned char orig[4] = { 0xB1, 0xE3, 0xCC, 0xBB }; unsigned char tmplt[4] = { 0x00, 0x00...
  2. verstrs

    Hi, I'm programming an interface

    If your program can run as root, you can use inb, outb,... but don't forget to use ioperm in the process/thread before accesing the memory. For more info, consult the man-pages. Remark: Linux is not real-time either, so it is probably worthwhile to make a kernel-module. Check out "Linux...
  3. verstrs

    mehi

    The main issue is probably ftp, where you would have to do "help site" to find information on how to get the output on your system. C++ is only needed to interprete whatever you received. In C++, make the command-file, start ftp (with fopen()) with the command-file and interprete and...
  4. verstrs

    Hi all - can anyone explain how i c

    I can't see what is wrong with the first response. The others don't give the terminating zero, so the results are not really strings. Just my 2 cents...
  5. verstrs

    Help with fork() function !!

    Hello Coming back to the original problem (fflush is for output). I don't like scanf to read from the input, so I would suggest using fgets and sscanf. The trick however is to look at the return-value of scanf or fgets because signals tend to interrupt system-calls, and thus acting like there...
  6. verstrs

    A shell program in c++

    Remark that for command->argv you must allocate memory for the array of arguments (or specify the maximum members of the array statically) and allocate memory for each argument. Hope this helps, Stefaan

Part and Inventory Search

Back
Top