Search Results

Search: Posts Made By: C|[anti-trust]
Forum: Programming 06-01-2005
1,774
Posted By C|[anti-trust]
is there any way or function to read word by word...
is there any way or function to read word by word and stored them in an array?
Forum: Programming 05-31-2005
1,774
Posted By C|[anti-trust]
length_of_my_string+1
my problem is quite simple;
with printf("%d %s",strlen(tmp[i]),tmp[i]);
im getting length_of_my_string+1
i.e if it reads "ls" from the file, it prints 3 instead of 2;
any solution?

char...
Forum: Programming 05-26-2005
17,797
Posted By C|[anti-trust]
to be honest, im lost!! i wish to have as...
to be honest, im lost!!
i wish to have as output ABABABABAB.
Forum: Programming 05-26-2005
17,797
Posted By C|[anti-trust]
am I lame ?? sounds like i didnt grab something...
am I lame ??
sounds like i didnt grab something !!!
ive changed my code now!!
whats wrong??
y for 2 loops, it prints 3 loops?

#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>...
Forum: Programming 05-26-2005
17,797
Posted By C|[anti-trust]
hai im programming a simple program like you...
hai im programming a simple program like you wanted, but its not working properly !!!

well first of all i want it to print A then B then A then B , five times
but i dont know y "for" is not...
7,415
Posted By C|[anti-trust]
well im not talking about recursivity! i wish...
well im not talking about recursivity!
i wish to know how does this work?
7,415
Posted By C|[anti-trust]
but my question is what does $0 $2 below the cp...
but my question is what does $0 $2 below the cp command do?
7,415
Posted By C|[anti-trust]
hmm so it is a recursivity script :) thanks
hmm so it is a recursivity script :)
thanks
7,415
Posted By C|[anti-trust]
well, i read in a book, if [ $# -eq 2 ];...
well, i read in a book,

if [ $# -eq 2 ]; then
cp $1 $2
$0 $2
else
tmp=`cat $1 | wc -l`
echo $tmp
while [ $tmp -ne 0 ] ; do
echo `head -$tmp $1 | tail +$tmp` >> $1.tmp
tmp=$(($tmp...
7,415
Posted By C|[anti-trust]
confused with cp
may i know what

cp $1 $2
$0 $2


does?
Forum: Programming 05-18-2005
2,233
Posted By C|[anti-trust]
Thanks it works. at this stage im here :p ...
Thanks it works.
at this stage im here :p

#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

struct stat s;
...
Forum: Programming 05-18-2005
2,233
Posted By C|[anti-trust]
im REwriting it at the moment, AT THIS STAGE: ...
im REwriting it at the moment,
AT THIS STAGE:
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

struct stat s;
...
Forum: Programming 05-18-2005
2,233
Posted By C|[anti-trust]
I dont want this
Im creating a sort of shell, for my cybercafe
This will restrict my clients from accessing unwanted materials
so im programming a similar bash to
1. to meet my goals
2. to learn new things.

im...
Forum: Programming 05-18-2005
2,831
Posted By C|[anti-trust]
there's the answer (strcmp("machine",c)==0)...
there's the answer

(strcmp("machine",c)==0)

im trying to make my own shell, i thk its the best way for me to grasp C and Bash at the same time
Forum: Programming 05-18-2005
2,831
Posted By C|[anti-trust]
it didnt change big deal
it didnt change big deal
Forum: Programming 05-18-2005
2,831
Posted By C|[anti-trust]
y is this not working properly?
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

struct stat s;

main() {
char c[100];
if (fork()==0) {
...
Forum: Red Hat 05-09-2005
4,002
Posted By C|[anti-trust]
try as root :)
try as root :)
Forum: Red Hat 05-08-2005
4,002
Posted By C|[anti-trust]
it cld be hard, but thats the best way to learn. ...
it cld be hard, but thats the best way to learn.
my girlfriend just installed suse at her father's place,
since she is using FC3 and not a computer geek, i saw that she has a better understanding...
Forum: Red Hat 05-08-2005
4,002
Posted By C|[anti-trust]
http://fedoraforum.org is the premier location...
http://fedoraforum.org is the premier location where fedora questions are easily answered
Forum: Red Hat 05-08-2005
4,002
Posted By C|[anti-trust]
im using fedora core 3 since last december im...
im using fedora core 3 since last december
im happy with it.
though installation of some plugins might be difficult,
its because fedora core is a pure OPEN source OS,
where some licenses like mp3...
Forum: Programming 05-05-2005
7,920
Posted By C|[anti-trust]
\n char in C
how can i change line in the file while using
write(desc,&c,sizeof(char));

?
Forum: Linux 05-01-2005
2,656
Posted By C|[anti-trust]
after some research i got a possible solution: ...
after some research i got a possible solution:


uuencode pic.jpg pic.jpg | mail abc@xyz.com < body.txt


but now i dont have "uuencode" command in my FC3
where could i get it? im using Fedora...
Forum: Linux 05-01-2005
2,656
Posted By C|[anti-trust]
attachements with mail command
Is there any way to send attachments via "mail" command from the terminal?
im writing a simple bash script to send my backups to my email address
Forum: Programming 04-26-2005
2,650
Posted By C|[anti-trust]
thanks ill take that into consideration,...
thanks ill take that into consideration, nevertheless i used an alternative :)
Forum: Programming 04-26-2005
3,522
Posted By C|[anti-trust]
I got the answer thanks :) here it is ...
I got the answer thanks :)
here it is

#include <stdio.h>
#include <ctype.h>

int main () {
char coll[2];
int col;

do {
printf("Enter Number: ");
scanf("%s",coll);...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy