Search:

Type: Posts; User: MedicineMan25

Page 1 of 2 1 2

Search: Search took 0.01 seconds; generated 28 minute(s) ago.

  1. Replies
    4
    Views
    1,335

    Can't edit so I'll just leave my solution here: ...

    Can't edit so I'll just leave my solution here:

    I can't work out how to pass the address properly through to the display function, so I will just use the return as a NULL check. It will be as...
  2. Replies
    4
    Views
    1,335

    Array of pointers to structs

    Hey there guys,

    I am having a little trouble with implementing an aspect of searching an address book, in a little make-a-phone project, I'm working on.

    Basically I am trying to search through...
  3. Replies
    3
    Views
    1,198

    Legend. I also realised that I'm an idiot and was...

    Legend. I also realised that I'm an idiot and was indexing from 1 instead of 0... doiii
  4. Replies
    3
    Views
    1,198

    convert user input for use in switch

    Hey guys,

    I'm just testing some code via user input. I'm trying to do a simple user input to select from 3 options, then enter a name to be entered into a linked list. I was using scanf but have...
  5. Replies
    9
    Views
    4,652

    So you did.. thanks! :) oh... well that's...

    So you did.. thanks! :)



    oh... well that's boring... I'll have to keep digging and see what I find.

    Thanks everyone![/COLOR]
  6. Replies
    9
    Views
    4,652

    Yeh well I need to know. I am a curious cat. I...

    Yeh well I need to know. I am a curious cat. I don't care about the API, I know how to use it... I'm not just asking so that I can use this in a code-base, I'm asking because I want to gain an...
  7. Replies
    9
    Views
    4,652

    Sorry, been on a show last few days. [/COLOR]...

    Sorry, been on a show last few days.

    [/COLOR]

    Um, sort of: I now understand what an opaque data type is and why it's used (really frustrating to learn that's a thing... grrrr). Wish I'd known...
  8. Replies
    9
    Views
    4,652

    How does FILE struct work in stdio.h

    Hey guys,

    I am trying to understand the file struct in C.
    How does this extend into a fully fledged file with
    formats and the rest.

    All there seems to be is an int that, unless this was a ...
  9. Oooo yes of course. Good point, strlen...

    Oooo yes of course.



    Good point, strlen doesn't count the null.


    Thanks!!
    MM25
  10. So I thought I would write a little simulation,...

    So I thought I would write a little simulation, to better understand the syntax and process that's happening here.





    typedef struct{

    char data[25];
  11. oh ........ I did it again. "Paste as text" ...

    oh ........ I did it again.

    "Paste as text"

    Got it.
  12. Oops!! Didn't see that. Will do. Yes I...

    Oops!! Didn't see that. Will do.



    Yes I understand that macros are simple text replacement. And I understand that the dot operator and arrow operator are essentially the same. As mentioned the...
  13. Macros, Base addresses and API functions

    So Iím a little confused with this code I am wading through. Itís the CMSIS level for the 32-bit zero gecko from Silabs.

    Basically they have a series of defines, for the base address of each...
  14. That's actually really cool, I never really...

    That's actually really cool, I never really thought about it that way.

    Here is the revised code:



    /*
    * To change this license header, choose License Headers in Project Properties.
    * To...
  15. So your saying that I should be storing a value...

    So your saying that I should be storing a value as the recursion occurs, then pass that value back through as a parameter of the function...
  16. haha, yes that is certainly true... Well I...

    haha, yes that is certainly true...

    Well I want to eventually return a value from the function. All return values up until that point, made recursively, are just garbage. But I see your point,...
  17. It seems to be segfaulting no matter what....

    It seems to be segfaulting no matter what. However this way:



    printf("This is the check left function executing\n");
    if(*left_ptr == INT_MIN){

    printf("else cond. in...
  18. I don't understand that to be a problem. It's...

    I don't understand that to be a problem. It's quite common to ignore a return value is it not? Is there another way that I could recursively call a function, that eventually returns a value?

    Here...
  19. Oops, I seem to have generated a seg fault....

    Oops, I seem to have generated a seg fault. Damnit.

    Thanks anyway!
  20. Nope... INT_MIN was definitely the problem......

    Nope... INT_MIN was definitely the problem... weird...
  21. Holy ........ Salem. I can't believe I didn't see...

    Holy ........ Salem. I can't believe I didn't see that. Thanks.

    I'll try using the INT_MIN keyword in the conditional now and see if my over-iteration was the problem.
  22. Found the problem... at least for now... INT_MIN...

    Found the problem... at least for now... INT_MIN was not equal to the value within the array. Even though it was initialized as that value, for some reason I needed to explicitly put the value of...
  23. Weird behaviour with comparison operator

    Hey guys,

    I am getting weird behaviour from a deque experiment I wrote. It's not even that significant; it's a comparison operator.

    Please just focus on the mentioned bug, this is incomplete...
  24. Replies
    8
    Views
    927

    ah yes.. now I understand why there is wchar_t...

    ah yes.. now I understand why there is wchar_t and other such typedef names. I will utilise your tip of extending this convention to structs and other types. Thanks!!!
  25. Replies
    8
    Views
    927

    Ok, so I figured all of my mess out. I did a...

    Ok, so I figured all of my mess out. I did a silly.



    typedef struct{

    }blank;


    Like you said; this declares blank as an instance of 'something that wasn't defined', type 'struct'. I...
Results 1 to 25 of 41
Page 1 of 2 1 2