got it. thanks...
Type: Posts; User: toshog
got it. thanks...
hi all...
i have a small program that reads an image char by char in binary mode. so the output looks like :
<FF> 1
<D8> 2
<FF> 3
<E1> 4
^W 5
{ 6
thanks... i think i got it from here...
hi there...
never done this before so a little bit confused...
i'm dumping a binary (image) file bit by bit - one char per line - using fread. in the terminal i see something like:
<9D> ...
hi all...
1. why this works:
int moo[2][MAX] = {
{2,4,34,43,23,0},
{2,4,34,43,23,0}
};
does that mean that the options of what those macros can be are "somewhat" limited?
i mean as far as how much can you cram into a function definitions in c/c++?!
the current state of the macros...
hi all...
i was handed a job to fix some c code and while i have programed many years using other languages i cant figure this one out and could not find anything on line.
supposing the...
thanks...
pardon my ignorance but... why would you want to make a type out of a void function pointer?!
hi all... just a clarification...
this is a function defined in the csignal library to handle (return(ed)?! - os?!) signals:
void (*signal(int sig, void (*func)(int)) ) (int);
i interpret...
hi all...
just getting into c. trying to understand pointers. reading the C programming language book. i have a few very simple lines of code that produce:
Bus error (core dumped)
here is...
thanks...
i'll use [code] next time... promise...
hi all...
learning c pointers. i have this code :
#include <stdio.h>
int main () {
char string3[10], string4[] = "foo moo loo";
for(; (*string3 = *string4) != '\0';...
makes sense. i think i understand now... thank you.
thank you. i appreciate the corrections. one last thing:
why are these declarations needed:
koo bar;
koo *loo = &bar;
sorry about the stupid question... just trying to clear the...
this was actually the whole file without the include statement. here it is again:
#include <stdio.h>
main() {
typedef struct p {
thanks.... so far so good...
another question. here is a piece of code:
main() {
typedef struct p {
thanks... that worked. i notoced that the last update on the page i'm following instructions from is from 3 and a half years ago. has something in the annotation of the type casting changed or it's...
hi all
i'm learning the use of pointers within struct definitions. currently following the instructions here:
http://www.le.ac.uk/cc/tutorials/c/ccccstrc.html
my code below produces:
syntax...