Search:

Type: Posts; User: toshog

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,219

    got it. thanks...

    got it. thanks...
  2. Replies
    4
    Views
    2,219

    binary comparison

    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
  3. Replies
    3
    Views
    2,435

    thanks... i think i got it from here...

    thanks... i think i got it from here...
  4. Replies
    3
    Views
    2,435

    binary comparison

    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> ...
  5. Thread: multidimention

    by toshog
    Replies
    12
    Views
    1,460

    multidimention

    hi all...

    1. why this works:


    int moo[2][MAX] = {
    {2,4,34,43,23,0},
    {2,4,34,43,23,0}
    };
  6. Replies
    2
    Views
    2,840

    does that mean that the options of what those...

    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...
  7. Replies
    2
    Views
    2,840

    function definition with 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...
  8. Thread: header signal.h

    by toshog
    Replies
    3
    Views
    1,657

    thanks... pardon my ignorance but... why...

    thanks...

    pardon my ignorance but... why would you want to make a type out of a void function pointer?!
  9. Thread: header signal.h

    by toshog
    Replies
    3
    Views
    1,657

    header signal.h

    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...
  10. Thread: very simple

    by toshog
    Replies
    6
    Views
    1,535

    very simple

    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...
  11. Replies
    4
    Views
    1,875

    thanks... i'll use [code] next time... ...

    thanks...

    i'll use [code] next time... promise...
  12. Replies
    4
    Views
    1,875

    pointers problem

    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';...
  13. Replies
    19
    Views
    2,594

    makes sense. i think i understand now... thank...

    makes sense. i think i understand now... thank you.
  14. Replies
    19
    Views
    2,594

    thank you. i appreciate the corrections. one last...

    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...
  15. Replies
    19
    Views
    2,594

    this was actually the whole file without the...

    this was actually the whole file without the include statement. here it is again:


    #include <stdio.h>

    main() {


    typedef struct p {
  16. Replies
    19
    Views
    2,594

    thanks.... so far so good... another...

    thanks.... so far so good...

    another question. here is a piece of code:


    main() {


    typedef struct p {
  17. Replies
    19
    Views
    2,594

    thanks... that worked. i notoced that the last...

    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...
  18. Replies
    19
    Views
    2,594

    pointer and struct

    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...
Results 1 to 18 of 18