Search:

Type: Posts; User: Tigertan

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    7,026

    Got it working! Cheers Salem:biggrin:

    Got it working! Cheers Salem:biggrin:
  2. Replies
    2
    Views
    7,026

    Makefile compilation

    Hey all ~~
    I'm working on a project which involves the use of a Makefile and my own static library for compilation.

    I had no problems running my project, including the Makefile, on a different...
  3. Replies
    3
    Views
    1,969

    Thought that might be the case. All good! Thanks

    Thought that might be the case. All good!
    Thanks
  4. Replies
    3
    Views
    1,969

    How do I delete this thread?

    How do I delete this thread?
  5. Replies
    3
    Views
    1,969

    Leaks and errors from context

    Hello all,

    I am at the final stages of a project, and am dealing with leaks.
    I am using valgrind (newbie!!).

    I am getting the following output:

    ==11236== HEAP SUMMARY:
    ==11236== in use...
  6. Replies
    2
    Views
    1,484

    Escape sequence search

    Hey all,

    I believe I have a very basic question for you all.. But I have tried and tried and cant get it to work to save my life.. I am wanting to return the index of the first '\n' that appears...
  7. Thread: Read function

    by Tigertan
    Replies
    7
    Views
    2,089

    Cheers John! I'm not (yet) familiar with how...

    Cheers John!
    I'm not (yet) familiar with how static buffers are implemented but shall do my research and give it a go! Have clearly understood your explanation. Thanks for putting me on the right...
  8. Thread: Read function

    by Tigertan
    Replies
    7
    Views
    2,089

    Hi there, Thanks for your reply. Yes you're...

    Hi there,
    Thanks for your reply. Yes you're right.. I am searching through the bug after the first read of size BUFF_SIZE and am return the first line.. The rest is discarded..

    When the function...
  9. Thread: Read function

    by Tigertan
    Replies
    7
    Views
    2,089

    Sorry for not being clear! Here is the full...

    Sorry for not being clear!

    Here is the full code:


    #include "line_by_line.h"
    #include <stdio.h>

    static int check_line(char *str)
    {
  10. Thread: Read function

    by Tigertan
    Replies
    7
    Views
    2,089

    Read function

    Hello Cboarders,

    Would love to get some help understanding the read function.

    I am attempting to use read() to read line by line.

    My code is structured as follows.

    int some_function(const...
  11. Thanks for your reply.. Completely missed the...

    Thanks for your reply.. Completely missed the fact that there was a "\0" in front of my eyes.

    I am confused as to how the standard library returns a -1 for the above scenario.

    I am getting...
  12. Comparing special characters/Ignoring escape sequences

    Hello there,

    I am trying to compare two strings, namely:
    str1 = "hello\0"
    str2 = "hello\200"

    When I input the above two strings into strcmp, the output correctly shows that the output integer...
  13. Comparing special characters/Ignoring escape sequences

    Hello there,

    I am trying to compare two strings, namely:
    str1 = "hello\0"
    str2 = "hello\200"

    When I input the above two strings into strcmp, the output correctly shows that the output integer...
  14. Replies
    2
    Views
    3,905

    Ahh crystal clear now! thanks!!! Got confused...

    Ahh crystal clear now! thanks!!! Got confused with the digits and the positions in the string.. Thank you kindly
  15. Replies
    2
    Views
    3,905

    Integer to String (itoa)

    Hello cboarders!
    I have written the below function, to convert integers to a character string.

    The output correctly shows negative numbers. For positive numbers however, the string is not ending...
  16. Replies
    2
    Views
    4,760

    Hi GReaper, Thanks for your post. I was trying...

    Hi GReaper,

    Thanks for your post. I was trying to print the whole string as I thought that the remaining part would show.. "\0\0\0\0\0\0ee". I was expecting to see the ee using %s.
  17. Replies
    2
    Views
    4,760

    BZERO recreation

    Helloo... been staring at the same screen for too long and am hoping I can get a tip or two off you cboarders!

    I have attempted to re-code the BZERO function. The function appears to do what I...
  18. Replies
    6
    Views
    3,181

    Understood. Thanks ddutch, will keep that in...

    Understood. Thanks ddutch, will keep that in mind.

    Now if anyone else can explain unsigned/signed character strings in a nutshell, that would be greattt (:
  19. Replies
    6
    Views
    3,181

    Cheers Salem. I have filled both dest arrays with...

    Cheers Salem. I have filled both dest arrays with \0 and it looks a whole lot cleaner. Clarifies a lot by filling it up and seeing the changes.
  20. Replies
    6
    Views
    3,181

    memcpy recreation

    Hi all!! Getting back into programming and starting with some basics - recoding some of the standard library functions.

    I'm on to "memcpy" and have a few questions.. My code is below.

    1. How...
  21. Cheers, I get it

    Cheers, I get it
  22. Using pointers to sort 3 numbers in descending order

    I'm getting a bit stuck with pointers.

    I'm reading three int values in, and would like them sorted such that they print from largest to smallest.

    I don't know what I'm doing wrong. I've set the...
  23. Still not getting it right though :/ UPDATED...

    Still not getting it right though :/
    UPDATED VERSION:

    #include<stdio.h>

    #define TRUE 1
    #define FALSE 0


    int near_equal(double, double);
  24. My output is really bizarre. here is the output...

    My output is really bizarre.
    here is the output for the input values "0.4201, 0.4202".12138
  25. Hi there, Thanks for your prompt reply! What...

    Hi there,
    Thanks for your prompt reply!

    What do you mean when you write C99 & C89?
    From what I understand, one scans a double in with %lf, but prints with %f, correct?

    I have been told that...
Results 1 to 25 of 39
Page 1 of 2 1 2