hi all,
a couple of months ago i was searching really hard for a command line version of the windows taskmgr, but i wasn't able to find one :(
so today i decided to write one myself, my brain...
Type: Posts; User: lepricaun
hi all,
a couple of months ago i was searching really hard for a command line version of the windows taskmgr, but i wasn't able to find one :(
so today i decided to write one myself, my brain...
gee, thanks for all the responses... ok, i did see the coded sucked in error checking, and "void main" wasn't that nice either, but i just wanted it to get compiled to see if it is the right...
hi guys,
I'm still learning C, and although socket programming for linux works like a charm, i can't get it to work for windows....
the code that is given in this tutorial is supposed to be...
thanks, i'll have a look at it :)
sorry, it is for windows 2k / XP, and i'm using dev-c++, i already know there are some API's that will do that, found the link here,
but it isn't clear to me how they work :(
Hi all,
I was wondering how you can disable the mouse and certain keys in C.
I want to write a program which has a lock. Meaning: if you enter the correct password, the mouse and keyboard are...
that clears things up! i'll keep it in mind for future reference :D
thanks for the reply :P
do i need a special library for it? how about exit 1?
well, actually someone else (can't remember his nick at the moment, also helped advised me to do the same(www.security-forums.com)) but special thanks to everyone that helped me, from the first...
hi guys, i've written a command line password generator ideal for scripting (works both on linux and windows).
everything works great, it has the GPL license, and i'm satisfied with it :)
BUT,...
well, that shouldn't be so hard :), i'll get to it right away :)
i'll read the faq,
hope in the faq also is explained how to free memory and how to check if malloc() didn't fail, otherwise i hope google will give the answer....
oh yeah, b.t.w., i've wanted to...
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int bufsize=256;
char *buffer=malloc(bufsize);
while(1)
{
printf("\nCommand:>");
thanks guys, this helps a lot :D
well, i've used the pointer just like:
int main (int argc, char *argv[])
at least, that's what i think, but how should i do allocate space?
and should scanf() be used like
...
hi guys,
can someone please tell me why this code isn't working?:
#include <windows.h>
#include <stdio.h>
int main(void)
{
char *run;
is that your first time then???
CONGRATULATIONS :D
that is a good tip!
i'm surely gonna do this, but i'm pretty new to C (i'm still learning) and i wanted to get the program to work first, before i changed it to use functions for everything that has...
well, it's just a sig, but if it is bothering you guys i'll change it :)
as for the program, i did what pianorain suggested and got to this code:
#include <stdio.h>
#include <stdlib.h>...
WaltP>> i understand what you mean, but try this site, it has a bunch of C tutorials and most of them start out without declaring main() as an int, like my signature...
i understand that the OS...
that i do get, but as far as i can see in my above code, the program always runs into a return 0; if no error occurs, so i didn't saw the need to put it in the end of main.
but let's just forget...
ok, learned something new about the srand() function :)
as for the return 0; i still don't get it, but i'll go and study it even more...
how would i process a string in memory?
never heared of...
just do a disk to disk copy, this has to work! otherwise get a copy (trial) of cloneCD, this will surely get the job done...
every distro is good, try knoppix if you don't wish to learn linux itself, it is a linux-live cd, it runs completely from cd...
if it is not allowed, the srand(), then how come it worked? i compiled it on gcc and on dev-c++, on gcc i used the command "gcc -o mastermind mastermind.c" so i didn't use it as c++.
but i will...