Since 5/6/2012 4:21:55 AM, martinfj has written 8 articles and participated in 13 conversations. martinfj signature: martinfj
martinfj's articles:
Items(8) /1
about functions1124 (5/12/2004 11:34:56 AM) comp.lang.c take the function: char f(){ return(-1); } f is the function pointer, i know how it is used to call a function. But, what exactly does the pointer point to? Where is the return value stored? Is it possib... Martin
if(a);7129 (5/10/2004 9:06:40 PM) comp.lang.c if(a); In this code, towhat type does the if statement cast the variable "a" to on comparizon? ... Martin
How to quit void functions243 (4/29/2004 11:43:37 PM) comp.lang.c Hello. I have a void function. Now, how do I exit the function at a random line in the code? Normally I would use the return statement. Thanks. ... Martin
Integers larger than 64bit - Arithmetic622 (4/25/2004 12:01:17 PM) comp.lang.c Hi. Is it possible to use the C-library to handle integers arbitrary large? I know how to do arbitrary arithmetic to add and convert the base of a number, but is there a way to utilize the c-library to aid th... Martin
typedef and multiple file projects622 (3/4/2004 9:12:41 PM) comp.lang.c Hello. I am programming a program which includes many libraries I have programmed. All libraries require this: typedef short word; But I get an error when I include this statement two times. If I used #def... Martin
Statements and expressions.1026 (2/17/2004 1:58:35 PM) comp.lang.c In C, what do you call that which is separated by semicolon? what is the difference between an expression and a statement? Thank you. ... Martin
Typecasting1121 (2/12/2004 11:23:14 AM) comp.lang.c Say I have these variables: char *array[2]; void *p; how can I typecast p to the type of array? ... Martin
About object oriented programming524 (9/11/2003 1:20:23 AM) comp.lang.c++ When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented programming? ... Martin
martinfj's replies:
Items(9) /1
Typecasting1121 (2/12/2004 11:23:14 AM) comp.lang.c Say I have these variables: char *array[2]; void *p; how can I typecast p to the type of array? ... martinfj(21)
searching a substring726 (2/12/2004 11:41:33 AM) comp.lang.c Can anyone suggest some efficient way to search a substring in a text file. For eg. suppose i want to search the pattern "abc" in a text file, then which algorithm should i use. I just want some hints, not the ... junky_fellow(377)
Assiciativity1032 (2/12/2004 12:01:31 PM) comp.lang.c Hi All, I read somewhere that there is no uniform associativity in C. What is the author trying to convey? First of all I don't understand the meaning of assiciativity. Please help. Thanks, Mohan. ... mohanasundaram(18)
signed and unsigned char1926 (2/12/2004 5:52:55 PM) comp.lang.c Given signed char str_a[]="Hello, world!\n"; unsigned char str_b[]="Hello, world!\n"; what is the difference, if any, between the following two statements? printf( "%s", str_a ); printf( "%s", str_b ); If t... ataru(1609)
Bounds checked string library2229 (2/14/2004 9:48:48 PM) comp.lang.c A function like strcpy takes now, two unbounded pointers. Unbounded pointers, i.e. pointers where there is no range information, have catastrophic failure modes specially when *writing* to main memory. A bett... jacob(2538)
comma in string639 (2/15/2004 12:28:31 PM) comp.lang.c How do you put a comma in a string that's passed as a function argument. The compiler thinks it's the end of that argument and I've tried the /, and "," but they don't seem to work. ... D
Streamable File Format + Interactivity229 (5/9/2004 5:34:46 AM) comp.lang.c Hello, I'm designing streamable animation format like flash. I have some questions. My animation format has interactive feature by script. A designer can insert 'gotoFrame' action on the first frame to go to... zaemin(5)
if(a);7129 (5/10/2004 9:06:40 PM) comp.lang.c if(a); In this code, towhat type does the if statement cast the variable "a" to on comparizon? ... martinfj(21)
Without semicolons2731 (5/10/2004 9:17:42 PM) comp.lang.c Write a program that takes a C program in source form as input and prints the source code for a program with equivalent behaviour, but without semicolons, on standard output. Please note that I'm not interes... jeremy63(294)