RE: Malloc()

1998-08-11 Thread James
On Mon, 10 Aug 1998, Niels Hald Pedersen wrote: -Is this true ? - -On my system, it is possible to compile/link a new (changed) version of -a program, while a copy is still running. After the link, the running -old copy no more have a valid executable, thus. How come ? because the program is

Re: Soundcards...

1998-08-21 Thread James
On Fri, 21 Aug 1998, luser wrote: - how can i capture the data that my soundcard produces when it makes sounds? - -Not very easily using software, you would need to use pipes and a -program to write to a file and the device file. ioclt() is used -to set sampling speed/size, it's problematic.

Re: Tired with the vi/grep, who can recommend a better programming environment.

1998-08-21 Thread James
On Thu, 20 Aug 1998, Nathan Grass wrote: - I think that anyone who enters Computer Science as a student MUST have a - computer and it must have Linux. As a class project they write a new X - manager or such. - -Did I ever tell you the story of a little operating system called Minix? that's in a

Stat

1998-08-25 Thread James
i'm trying to use stat() to find out a file's size. So far i have : /* Start Of Code */ #include sys/stat.h #include unistd.h #include stdio.h int main (void) { int status; struct stat *buf; status = stat ("/root/.procmailrc", buf); /* don't ask why i'm using my

Re: EGG ROLLS!

1998-08-25 Thread James
On Mon, 24 Aug 1998 [EMAIL PROTECTED] wrote: -Are you tired of eating the same old american left overs? -TRY OUR BEAUTIFUL ORIENTAL DISHES AT CATHAY PEARL! - - 508-379-1188 - i live in the UK, do i get full refund if it's cold :) -- [EMAIL PROTECTED]

usleep()

1998-08-26 Thread James
why when i run the following does it wait 5 seconds then display .\.\.\.\.\ instead of displaying . [wait 1 second] \ . [wait 1 second]... /* start */ #include stdio.h #include unistd.h int main() { int c; for (c = 0; c 5; c++) { printf (".");

Re: Binary

1998-08-30 Thread James
On Sat, 29 Aug 1998, Glynn Clements wrote: - -James wrote: - - How do you use binary numbers in C? i'm sure i once knew... - - i know you prefix 0x to numbers for Hex, 0 for octal, what's binary... - -ANSI C doesn't provide any way to specify numbers in binary. - ahh... oops! i know where i

binary

1998-08-30 Thread James
uh oh, i've started another big debate :) carry on, it's interesting stuff... -- [EMAIL PROTECTED]http://x-map.home.ml.org

Re: Binary

1998-08-30 Thread James
On Sun, 30 Aug 1998, Chetan Sakhardande wrote: -No way. - -Just curious -- why? you ever seen that diagram that shows how to connect LEDs to the data lines on your parallel port? well i wanted it to flash different patterns (for no good reason) and it's 1 bit per led, 1 on, 0 off. specifying

Re: Binary

1998-09-03 Thread James
On Tue, 1 Sep 1998, Josh Muckley wrote: -You need to find the pinouts of the parallel port and then just -connect a led from a data line to a ground line. There are three -differant types of lines in your p-port. The first and most important -is DATA (out), the second is STATUS (in) and the

Re: fsck

1998-09-07 Thread James
On Fri, 4 Sep 1998, dreamwvr wrote: -Reuters, London, February 29, 1998: -Scientists have announced discovering a meteorite which will strike the -earth in March, 2028. Millions of UNIX coders expressed relief for being -spared the UNIX epoch "crisis" of 2038. at least when that event does

main()

1998-09-08 Thread James
where is the right place to put main()? before or after my function definitions? Because i used to write Pascal code, i stick main() last (in Pascal, the main begin..end pair must be the last function in the program). does it matter? seems more logical to define your prototypes, write them, then

Re: UNIX meteor (was RE: fsck)

1998-09-09 Thread James
On Tue, 8 Sep 1998, Niels Hald Pedersen wrote: - - -Reuters, London, February 29, 1998: -that's an unorthodox leap year, isn't it ? i'd spotted that... What happens to people born on the 29th feb? are they 1/4 age of everyone else born in their year? :) -- +++ Divide By Cucumber Error,

function parameters

1998-09-09 Thread James
how do i create a function that has an undetermined number of parameters? i.e printf can have 1 parameter: printf ("Hello World\n"); or many... printf ("Hello","world","\n","%d%d%d", 2, 0, 35); how? the definition for it has '...' as a parameter... what's that mean? and if you

Re: fsck

1998-09-09 Thread James
On Tue, 8 Sep 1998, Dave wrote: -Except maybe the United States government, who still uses vacuum tubes and -discrete transistors to run its air traffic control system "If it aint broke, don't try to fix it" (oh, wait... you said vacuum tube...) -- +++ Divide By Cucumber Error, Please

uptime

1998-09-09 Thread James
I've been thinking about this for a while... is there some patch that'll store my pc's uptime when i reboot (so it'd really be a cumulative-uptime). -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED]http://x-map.home.ml.org

max dir length

1998-09-10 Thread James
just for compatabilities sake, what's the maximum number of directory entries (is it infinite?), i've picked 255 for no good reason, this sound sane? what?! suppose sending this'd help (it's been sat here all night) -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++

file locations

1998-09-10 Thread James
where's the 'standard' place for my program binaries to go? /usr/local/bin or /usr/bin ? and documentation should go in /usr/doc/programname manpages in /usr/man/... (and how do i write manual pages anyway?) -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL

flex

1998-09-10 Thread James
flex would let me parse files wouldn't it? at the moment i have a horrendous parsing routine that contains a few gotos in it (aargh :) and is generally really complicated ( = slow) and not nice. What i want parsing is similar to C source (but not the same, it contains blocks of data enclosed in

directories

1998-09-10 Thread James
forget it i've worked it out... open a dir with opendir(), have a loop that repeatedly calls readdir(). now i need repeated calls to stat() to find out the file size... -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED]

RE: main()

1998-09-10 Thread James
On Wed, 9 Sep 1998, Niels Hald Pedersen wrote: -If you want a pascallish structure of C programs, use function -prototypes: this is what i do... apart from making it 'nicer' for the compiler, it can also trap errors like forgetting a parameter when writing the function itself. I wasn't

Re: function parameters

1998-09-10 Thread James
On Wed, 9 Sep 1998, Glynn Clements wrote: - printf ("Hello","world","\n","%d%d%d", 2, 0, 35); - -This isn't a legitimate printf() call. The format string has to be a -single argument, e.g. oops, i meant printf ("Hello ""World ""\n"); /* No ,'s between */ so that if you have a

Re: curses, colour won't work...

1998-09-13 Thread James
On Sun, 13 Sep 1998, Ken wrote: - - -On Sun, 13 Sep 1998, James wrote: - - how do i get coloured text in ncurses? i've tried making a colour pair - and attron() and attrset() but the best i got was the following in - black on flashing white (the text was 'Hello!'): - - 27462Hello! - - (i can't

What's the biggest file?

1998-09-15 Thread James
thought this might help someone, wrote it whilst trying to work out where all my harddrive space had gone... $ du -bax | sort -rn +0 | less it'll display all your files and directories, sorted with the biggest first (which'll always be . so ignore the top line). It only searches the current

finding strings

1998-09-16 Thread James
wait... made it a bit more user friendly... $ grep `find -name *.c -print` -ne | less it'll now display the line numbers and pipe it into less so you can read it a page at a time. -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED]

File IO

1998-09-16 Thread James
how do i do file I/O in the kernel? I.e i want to read a value from a file and store it in the kernel's uptime variable... i've tried the 'normal' open() (or was it fopen(), one of the two) but it complains (i can't remember the error, but it was as though i'd not linked something in). and if

Re: What's the biggest file?

1998-09-17 Thread James
On Tue, 15 Sep 1998, tempest wrote: -Hello James, - -Sorry to bother you with such a silly question, but could you give me -the URL of where you found the Linux Programmers Guide? I'd really -like to have that myself! I'm on the linux-c-programming mailing -list, in case your wondering how I

stat

1998-09-30 Thread James
how do i use the S_IS* macros? i want to check files to see if they really are files or directories... all it says is S_ISREG(m) regular file? what's m? i've tried stating a filename, then doing: if (S_ISREG(buf.st_rdev)) /* st_rdev seemed the most sensible */

Man Page Error

1998-10-04 Thread James
This is semi-on topic... (it's about a man page to do with c programming): There's an error in the GETCWD(3) manpage: NAME getcwd, get_current_dir_name, getwd - Get current working directory SYNOPSIS #include unistd.h char *getcwd(char *buf, size_t size);

Mail spools

1998-10-26 Thread James
is the data in /var/spool/mail/whatever in a special order? I mean the order of the separate mail messages. Does it matter if the newest is at the head and the oldest at the tail? -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED]

Mail

1998-11-06 Thread James
Can anyone actually see this mail? None of my mails i've sent have come back to me... -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED] [Website undergoing re-design...]l.org

Re: My PCI modem.

1998-11-08 Thread James
On Sat, 7 Nov 1998, Canul Podkopayeva wrote: -BTW, its a PCI plug-n-play modem, I'm running 2.1.126 aargh! run for the hills! anyway, if it has Winmodem on it then it'll make a good doorstop :) have you tried running minicom or something and configuring that? modems don't require any special

Re: last question :)

1998-11-08 Thread James
On Sat, 7 Nov 1998, Leon Breedt wrote: -what's the fastest way to check for the existence of a file/directory? try and stat() it? if it fails then it doesn't exist? -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++ [EMAIL PROTECTED] [Website undergoing

Re: file size query

1998-11-08 Thread James
On Sat, 7 Nov 1998, Leon Breedt wrote: -hi again - -is there a function similar to pascal's filesize() in ANSI C? something -that will take a pointer to a stream as parameter, and return the file -size in bytes. man stat -- +++ Divide By Cucumber Error, Please Re-Install Universe And Reboot

Re: Magazines for low prices!

1998-11-10 Thread James
On Mon, 9 Nov 1998, magazines wrote: -To be removed from future mailings, please send an email to -mailto:[EMAIL PROTECTED]ŸD i'm too tired to think. Can someone cook me up a procmail recipe that looks for similar strings to this (to be removed, to remove etc) in emails and stuffs these emails

Re: indenting question

1998-11-14 Thread James
On Thu, 12 Nov 1998, Leon Breedt wrote: -is it better to indent my source using real (\t) tabs, or should i configure -my editor to expand tabs into spaces? i can't decide which is best :) use tabs because when deleting the tab character (i.e you press tab in the middle of a line by accident)

Re: linked list question

1998-11-14 Thread James
On Fri, 13 Nov 1998, Glynn Clements wrote: - -Leon Breedt wrote: - - i'm working on a doubly-linked list at the moment, just one or two questions: - - i looked at the way the doubly linked list is implemented in glib, - -What is glib? the low-level GTK+ library, think it handles basic screen

Re: free memory?

1998-11-14 Thread James
On Sat, 14 Nov 1998, Moshe Zadka wrote: -Decrefing with a bug? -consider the following, buggy, code: -a=malloc(10); -b=malloc(10); -free(a); -free(a); wouldn't the program stop when it reached the 2nd free because it is trying to free a NUL pointer (assuming free sets them to NUL, if not the

Re: Arrays

1999-01-10 Thread James
On Sat, 9 Jan 1999, Richard Ivanowich wrote: # Hello all, # # Now i know arrays do no bound checking. How would i make it do bound # checking? # # ie. int array[10]; # # for(i=0;i=11;i++) { # array[i]=i; # } for (i=0;i10;i++) { array[i] = i; } /*i.e code bound checking by hand

Hello...

1999-01-15 Thread James
is this list dead too? (what's happened to linux-admin@vger? not even majordomo is replying...) -- +++Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] [Website undergoing re-design...]l.org

Re: test

1999-01-15 Thread James
On Thu, 14 Jan 1999, David Rysdam wrote: # # email!! wow... guess they turned the server back on :) -- +++Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] [Website undergoing re-design...]l.org

Re: Hello...

1999-01-15 Thread James
On Fri, 15 Jan 1999, Karl F. Larsen wrote: # # James, # This list is far from dead. But it sometimes is quiet. I carry a # leatherman which has even a long nosed pliers! It's good for helping those # "Easy Open" beer cans. cool, i've just got a 'standard' sized screwdriver

Funny Fortune! (fwd)

1999-01-16 Thread James
completely off topic, out of date and ultimately not worth posting... but funny all the same -- +++Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] [Website undergoing re-design...]l.org better !pout !cry better watchout lpr

Re: send_sig and library question

1999-01-16 Thread James
On Fri, 15 Jan 1999, Glynn Clements wrote: # send_sig() is a kernel function (kernel/exit.c). # send_sig() isn't in any library; it's a kernel function. # You can't link to it; it's a kernel function. # # You find the library first. Then you read the library's documentation, # which should tell

Test

1999-02-13 Thread James
hello... -- +++Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] [Website undergoing re-design...]l.org int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,g=c*2;c

Re: stderr

1999-02-18 Thread James
On Wed, 17 Feb 1999, David Rysdam wrote: # The second way is to close file descriptor 2, and re-open another # file/device with that number within your program. will C let you do that? cos what'd happen if you closed stdout and forgot to re-open one and then did a printf(). And you can't open

Re: memory allocation

1999-02-18 Thread James
On Thu, 18 Feb 1999, Anubhav Hanjura wrote: # main() # { # # char *filename; # char *string =3D "this is a string"; # # strcpy(filename,string); # printf("filename is %s\n",filename); # } This _should_ break. where does *filename point? from the strcpy() man page: DESCRIPTION The

Re: variable arguments

1999-02-18 Thread James
+++ [EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit Here's what i got sent when i asked the question... -- Forwarded message -- Date: Wed, 9 Sep 1998 22:27:03 +0100 (BST) [i keep my mails :) ] From: Glynn Clements [EMAIL PROTECTED] To: James [EMAIL

signals

1999-02-19 Thread James
Why doesn't linux have a ualarm() or sigset()? it's mildly irritating. cos if i'm writing some program that needs a continuous alarm sending i have to repeatedly call signal() and alarm() to set one up. surely there's an easier way. including bsd/signal.h just gives me an error about the file

Re: your mail

1999-02-20 Thread James
On Fri, 19 Feb 1999, Nassar Carnegie wrote: # Thats all good too.., beacuse im learning C as well. I thought to learn # more from other peoples problems and programming errors by joining a C # programming mailing list. I see that this list moves kind of "slow" yeah, but this list is like a

Saneness

1999-02-21 Thread James
What is a non-sane build environment? (apart from Windows and dos :) -- +++ Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit

Re: Newcomer

1999-02-22 Thread James
On Sun, 21 Feb 1999, Piero Giuseppe Goletto wrote: # As far as I know, the minix kernel is the basis from which Linus Torvalds # started writing the Linux Kernel. "and in the beginning god did type 'cp -r minix/* linux'" :) where can i get gas (the gnu assembler)? i want to compile kernel

./configure

1999-02-22 Thread James
How do i make my own configure scripts? are they hand written or created by some special program? -- +++ Beware of programmers who carry screwdrivers +++ [EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit

Re: Debugging ...

1999-02-22 Thread James
On Mon, 22 Feb 1999 [EMAIL PROTECTED] wrote: # I have an application in wich i define for example an integer that is equal # to 3. But I want the following adjustment to my program : # When i wanna compile my program with the -g (debug) option, i'd like that # the integer is equal to 2. What i

RE: Yet another beginners question ...

1999-03-03 Thread James
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: # My friend says that I should buy the KR but i think I read somewhere that # it's 'old C', not ANSII C. Is this correct ? no, the KR ANSI C Book is for ANSI (One I) C... I think you're confusing it with KR C which is old C. this is the book to buy:

Re: Yet another beginners question ...

1999-03-03 Thread James
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: # #define LOGFILE /APPHOME/applogfile /* APPHOME is the actual home # directory for the application */ # remove("LOGFILE");/* First remove the old logfile */ # LogFile = fopen("LOGFILE", "w"); you know how using #define's

Re: exit() ...

1999-03-05 Thread James
On Fri, 5 Mar 1999 [EMAIL PROTECTED] wrote: # I've seen a lot of source code lately. My idea the best way to learn a # language ... # # I've noticed that exit() can take a parameter. I've seen exit(0), exit(1), # exit(2) and even exit(10). What does the parameter mean ? I can't find any # table

Re: Missing errnos.h

1999-03-06 Thread James
On Sat, 6 Mar 1999, Henk Jan Barendregt wrote: # I'm trying to compile a code which uses a header file I haven't heard of # errnos.h # # Check your include path or otherwhise i think you've lost it somehow. # On my system (kernel 2.0.36) it's in the /usr/include directory it's called

Re: vim or emacs c syntax

1999-03-14 Thread James
On Sun, 14 Mar 1999, Catalin Bucur wrote: # Chris wrote: # # I was wondering how to make vim do syntax highlighting for C code or emacs # and how to set tabs for code. # # Thanks # # For vim, # :syntax on and the tabstops... :set tabstop=x [where x is some number, 4 or 8

Re: cdrom_msf and cdrom_ti question

1999-03-21 Thread James
On Sun, 21 Mar 1999, Glynn Clements wrote: # I'm using struct cdrom_ti to play audio tracks, but when I try to play # the last track (this fails on every cd) it wont't play. # Every track but the last track works, isn't that weird? # One of my ideas is that maybe it has something to do with

Re: ???

1999-03-24 Thread James
On Mon, 22 Mar 1999, Glynn Clements wrote: # will allocate space for a `char *', but it will point to some random # memory location. The result of using dbQuery as the first argument to # sprintf() will be undetermined. The one thing of which you can be sure # is that it will write to some

Re: poniter problem

1999-03-26 Thread James
On Fri, 26 Mar 1999, Amol Mohite wrote: # say I have a char *c pointing to an array of 10 bytes. you mean: char myarray[10], *c; c = myarray; # When i do (int *)c++ (increment before typecast -- forget the brackets for # nw), and equate it t an int *i then please re-read what you type.

Re: container class ?

1999-03-26 Thread James
On Fri, 26 Mar 1999, Chetan Sakhardande wrote: # Also in unix, how do i set an alarm with timer less than i sec? use usleep(). -- +++ If at first you don't succeed, you must be a programmer +++ [EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit

-D

1999-03-28 Thread James
does doing gcc -DBAR=\"foo.c\" do the same thing as gcc -DBAR='"foo.c"' which is equivalent do doing this in the source file #define BAR "foo.c" -- +++ If at first you don't succeed, you must be a programmer +++ [EMAIL PROTECTED]

strtok()

1999-03-29 Thread James
maybe it's just me, but i find this funny... (from the strtok() manpage) BUGS Never use this function. it's a fairly big bug! :) i expect there are similar things stuck to nuclear warheads (Warning! This device is hazardous to most forms of life, do not use). i'll try strsep() instead,

Re: strtok()

1999-03-29 Thread James
On Mon, 29 Mar 1999, Bug Hunter wrote: # # strtok() uses a global to store its intermediate results. meaning that # you can get unexpected results if several parts of your program use it. # it uses a local static variable actually. and it is very destructive, but if you make a copy of the

recv

1999-03-29 Thread James
is it really inefficient and slow to recv stuff from a socket 1 byte at a time? my program reads data from a socket 1 byte at a time, checking if the character read is a newline, if it isn't then the char is copied into a char array, otherwise the recv stops and something is done with the array.

terminal

1999-04-01 Thread James
how do i turn off the cursor and make my programs accept characters typed into a terminal without you having to press enter first? I once knew, but i forgot :) -- +++ If at first you don't succeed, you must be a programmer +++ [EMAIL PROTECTED]

Re: Type casting with malloc()

1999-04-01 Thread James
On Thu, 1 Apr 1999, holotko wrote: # My question. Do I really need to add the type cast (ObjectType *) # before the call to malloc() ? no. but gcc will warn you, if you use -Wall, about it. Doesn't do any harm leaving it in and if you miss it out gcc will add it in itself. Technically you need

Re: fledgling

1999-04-06 Thread James
On Tue, 6 Apr 1999, Glynn Clements wrote: # In no less than 5 months I will be graduating and # moving on to college. I plan to study computer # engineering. I know that I *will* be able to skip some # courses, especially if it has to deal with # programming. # # It depends upon the nature

ppp

1999-04-06 Thread James
what's the most reliable way of detecting when a ppp link is up? so far i've been looking in /proc/net/dev, but the ppp entry in that hasn't gone away and i'm nolonger online. -- +++ If at first you don't succeed, you must be a programmer +++ [EMAIL PROTECTED]

Passing by reference

1998-06-15 Thread James
Ok, this is an easy question...but it's annoying me, How do i pass by reference? i want to pass a pointer to a struct into a function, have the function modify the pointer to point somewhere else, and pass back the new pointer: mystruct *pointer, *head; void Modify (mystruct *input) {

Termination

1998-06-16 Thread James
is it possible to have a function called when the user presses ^C or kills the program so that the program can 'clean up' before being terminated? (i.e close all open files, write out data, free allocated memory etc). if so, how? -[[EMAIL

Re: Passing by reference

1998-06-16 Thread James
On Mon, 15 Jun 1998, Brett Thompson wrote: -Why, hello there! :) - -This is just a really quick little answer, as I'm sure if you wait -somebody else much more clever than I will probably give a better -response... it just might suffice though, anyway, here goes. :) - -Note that C++ does

Pointers (again)

1998-06-17 Thread James
Ok, i understand the need to make a pointer to the pointer so you can make the pointer point to some other pointer (ok, so i intentionally put lots of pointers in that line :) ) but here's what i'm trying to do: Note: 'line' is defined as follows: -- Part of parser.h -- typedef struct line_t

Re: Pointers (again)

1998-06-17 Thread James
On Wed, 17 Jun 1998, Glynn Clements wrote: - -James wrote: - - void next_1 (line **in) - { - /* this is where i am having difficulties, gcc gives this error: -passback.c:9: request for member `next' in something not a structure -or union */ - *in = in-next; - -Try

Re: Pointers (again)

1998-06-18 Thread James
On Thu, 18 Jun 1998, Glynn Clements wrote: -Right. Could you please shoot the person who taught you this before -they do any more damage :) that would be a pleasure :) he's also the same person that taught me declarative programming (euugh! so slow and nasty) and recursion (has a few uses...

Re: Pointers (again)

1998-06-19 Thread James
Date: Fri, 19 Jun 1998 00:08:53 +0200 (CEST) From: Andrea Arcangeli [EMAIL PROTECTED] To:Glynn Clements [EMAIL PROTECTED] Cc:Linux C Programming List [EMAIL PROTECTED] Subject: Re: Pointers (again) Reply-to: Andrea Arcangeli [EMAIL

Re: Pointers (again)

1998-06-19 Thread James
On Thu, 18 Jun 1998, Glynn Clements wrote: - that would be a pleasure :) he's also the same person that taught me - declarative programming - -That's *really* odd. Someone with a functional programming background -would never add at the tail. hmm, if i could be bothered moving i'd dig out the

Re: For speed freaks

1998-06-20 Thread James
On Fri, 19 Jun 1998, CyberPeasant wrote: -As an amateur anthropologist, I would be interested in knowing the true -origins of the adversion to recursion. I think there are psychological -reasons -- uneasiness about the stack. mine are because we were taught recursion with linked lists, we wrote

Re: Pointers (again)

1998-06-20 Thread James
On Fri, 19 Jun 1998, Glynn Clements wrote: -Also, many problems which could be solved by either branched recursion -or iteration (tail-end recursion) can be solved more efficiently by -branched recursion; typically the recursive approach is O(log(n)) -whereas the iterative approach is O(n). -

Re: Pointers (again) [offtopic]

1998-06-21 Thread James
On Sat, 20 Jun 1998, Andrea Arcangeli wrote: -On Fri, 19 Jun 1998, James wrote: - -i like VI, it's quick, small and has no distracting menus (ok so you - -I use emacs from the console... i've never used emacs (except X-Emacs), it has

Re: your mail

1998-06-21 Thread James
On Sat, 20 Jun 1998, mortimor wrote: - - --- -"Why ?" -"Becouse." - Terry Pratchett "Interesting times" I've read that book (in fact i've read a lot of those books). -[[EMAIL PROTECTED]]- Http://x-map.home.ml.org Mailto :

Weird keyboard i/o

1998-06-23 Thread James
ok, compile this code, then explain why it does what it does... /* Start Of Code */ #include stdio.h char c; int main () { printf ("Scanf Test\n"); printf ("enter a character "); scanf ("%c", c); printf ("Char was [%c]\n", c); printf ("Getc test\n"); printf ("Enter a

Re: svga/vga

1998-06-23 Thread James
On Mon, 22 Jun 1998, Mike 'b0mbtraq' Kabata wrote: -On Sat, 20 Jun 1998, Glynn Clements wrote: - - Have you got any ideas why i can't get any - non-standard mode (640x480x256 even) ? - - The usual reason is that it doesn't include drivers for your - particular graphics chipset. - -Hmm...

Re: [offtopic] Emacs vs vi

1998-06-23 Thread James
On Mon, 22 Jun 1998, John Gorman wrote: -I can open up an emacs window, write/modify my program, compile it, have -the cursor pointed to each error that may appear, bring up a man page if I -need to, and then test my program and never leave emacs. ever heard of Virtual Terminals? on a good

Re: [offtopic] Emacs vs vi

1998-06-23 Thread James
On Sun, 21 Jun 1998, Kevin Sivits wrote: - - -Vi and emacs both suck. Text editors are for losers. The only real -editor is a line editor. Worship ed or its bastard cousin edlin. do you by any chance write your code in binary :) cool signature by the way... -[[EMAIL

Re: [offtopic] Emacs vs vi

1998-06-24 Thread James
On Tue, 23 Jun 1998, Karl F. Larsen wrote: - - What is wrong with Ctrl-k x? - - i never knew it existed! actually, i tried it and i got this: ? then x in command mode it beeps at me. -[[EMAIL PROTECTED]]- Http://x-map.home.ml.org

Re: SPAM

1998-06-25 Thread James
On Tue, 23 Jun 1998, CyberPeasant wrote: -Make it a habit to complain to the ISP of the spammer for /every/ spam, -if you can stomach it. it's a shame spams don't follow set patterns, if only someone could write a (linux) program to filter out spam and send automated replies (either to 'remove'

Re: 666

1998-06-25 Thread James
On Thu, 25 Jun 1998, Marcel - Titus MARGINEAN wrote: - C-Code Snipped quite funny :) -[[EMAIL PROTECTED]]- Http://x-map.home.ml.org Mailto : [EMAIL PROTECTED] ---[Quote Of The

Re: forwarded message from Joseph Martin

1998-06-26 Thread James
On Thu, 25 Jun 1998, Glynn Clements wrote: [NON-Text Body part not included] oh... thanks PINE! anyway, return line; will pass out the line -[[EMAIL PROTECTED]]- Http://x-map.home.ml.org Mailto : [EMAIL PROTECTED] ---[Quote

Re: # 1 Training Video

1998-07-02 Thread James
Oh no. not again!

weird.

1998-07-02 Thread James
is this mail getting through? i keep getting: Running XAA15631 (sequence 12 of 12) [EMAIL PROTECTED]... Deferred: Name server: tower.itis.com.: host name lookup failure -[[EMAIL PROTECTED]]- Http://x-map.home.ml.org Mailto :

Re: remove

1998-07-02 Thread James
On Wed, 1 Jul 1998, Victor wrote: -remove -If our brain was so simple we could understand it -we would be so simple we wouldn't understand it. so logically our brain is so simple. Anyway, why is everyone deserting this list?! They're not all running off to visual basic are they? :) -[[EMAIL

Re: weird.

1998-07-12 Thread James
On Thu, 2 Jul 1998, Glynn Clements wrote: - -James wrote: - - is this mail getting through? i keep getting: - - Running XAA15631 (sequence 12 of 12) - [EMAIL PROTECTED]... Deferred: Name server: tower.itis.com.: - host name lookup failure - -Is which mail getting through? the mail i put

RE: remove

1998-07-12 Thread James
On Fri, 3 Jul 1998, Niels Hald Pedersen wrote: -It may be that simple that when going on, say, 4 weeks holiday, there -may be 400+ posts in the mail when returning :) only 400? i went away for 1 week and now have 800 of the nasties to read! -[[EMAIL

Re: sizeof() is too broken!

1998-07-14 Thread James
On Mon, 6 Jul 1998, Karl F. Larsen wrote: -broken in my Linux. Here is the test program. you get them ALL to be 4 bytes? here's what i get: bigbird:~# ./test Type int has a size of 4 bytes. Type long has a size of 4 bytes. Type float has a size of 4 bytes. Type char has a size of 1 bytes. now

Re: Writing Makefiles, configure, etc

1998-07-15 Thread James
On Tue, 14 Jul 1998, Ibrahim F Haddad wrote: -At 03:08 PM 7/13/98 -0400, you wrote: -Introduction Ker-Snip cool, so THAT'S what that 16k email was! Most useful, i've read that make book but had to return it to the library. -[[EMAIL PROTECTED]]-

PINE

1998-07-16 Thread James
ok, i use pine to read my emails and like it, however, how can i make pine display Text attachments instead of displaying: [Part 2, "" Text/PLAIN 35 lines] [Not Shown. Use the "V" command to view or save this part] [Part 3, "" Text/PLAIN 48 lines] [Not Shown. Use the "V" command to view or

Can't compile kernel

1998-07-17 Thread James
i've just received the GPL Version of Slackware Linux 3.5 and installed it on my P200MMX. The first thing i tried doing was compiling a new kernel, however i always get this error message: make[2]: Entering directory `/usr/src/linux/kernel' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall

  1   2   >