Since 4/14/2012 3:06:22 AM, tom236 has written 1 articles and participated in 283 conversations. tom236 signature: tom236
tom236's articles:
Items(1) /1
Honest question (random compression)5134 (1/6/2010 3:49:57 PM) comp.compression Just stopped from my daily grind at work and reading usenet long
enough to think about this question:
Why is random data compression the holy grail of data compression
[choose your adjective...]? We don't... Tom
Wrapping existing UNIX commands in C9956 (7/29/2012 3:11:18 PM) comp.lang.c Hi,
So I am aware of the exec family of functions and the system function to
execute external commands but they do not seem to offer the
functionality to allow me to get the output of said executable so ... chicken(50)
Function factories4233 (8/21/2012 8:36:31 PM) comp.lang.c Hello
I want to make a factory that produces other functions according to a
parameter.
The following code does not compile:
typedef int *(foo)(int);
foo adder_factory(int x)
{
int f(int a)
... edward.p.rutherford79(45)
#define BYTES *83628 (8/28/2012 7:44:24 AM) comp.lang.c Anything wrong with that, i.e., with #define BYTES *8
to multiply by 8? It looked a little weird to me, but
the more obvious #define BYTES(x) ((x)*8) isn't what
I wanted to write. This was to express units ... john42(309)
callback function7137 (10/17/2012 9:16:51 PM) comp.lang.c I have these 3 functions and before I compile I am going to ask about
them. This is for qsort. I tried to tackle this once and couldn't get it I
think I get it now. I don't like const's. They are a nuis... billcun1(68)
Large number libraries/algorithms3631 (10/22/2012 9:11:28 AM) comp.lang.c Does anyone know of an API that will do standard math ops (*,+,-,/,% etc) on
very large numbers (stored in char arrays presumably)? ie The sort of numbers
that have no chance of fitting in even a 64 bit int... boltar20032(164)
How to apply qsort() with a parameter?2023 (10/22/2012 5:51:54 PM) comp.lang.c How does one apply qsort() if the comparison criterion
depends on a parameter?
Specifically, suppose I wish to sort an array of int,
according to distance from a prescribed value `n':
int compar(const ... rouben
Pointer arithmetic question. #22334 (10/30/2012 5:33:28 PM) comp.lang.c Hello! I am doing some exercises from K&R 2nd edition and I seem to be stuck: Here's a working copy of a custom strcpy:
char *strcpy(char * s, char * t)
{
char x;
while(x=*s)
s++;
while((*s++=*t++))... glohamen(4)
kandr2 question8438 (10/30/2012 10:10:09 PM) comp.lang.c �1.9 page 29 has this function.
int getline (char s[], int lim)
Unless I'm missing something here to pass an array shoudn't that first
parameter be char *s ?
Bill
... nospam116(1187)
simple C question3726 (11/4/2012 9:17:13 PM) comp.lang.c I have looked all over the internet for a tutorial on how to do this
because I've forgot because I usually manually load arrays. But in such a
case where say someone has an array with 100 elements I wan... nospam116(1187)