About 6,780,000 results
Open links in new tab
  1. Difference between <string> and <string.h>? - Stack Overflow

    Feb 13, 2012 · As stated, string.h and cstring are C headers (while cstring is basically a C++ wrapper for string.h), containing functions for C strings, which are char[] terminated by '\0'.

  2. c - Difference between <string.h> and <strings.h> - Stack Overflow

    Nov 27, 2010 · Some C standard libraries have merged the non-deprecated functions of strings.h into string.h. See, e.g., Glibc.

  3. How do I lowercase a string in C? - Stack Overflow

    Apr 18, 2010 · How can I convert a mixed case string to a lowercase string in C?

  4. How do I properly compare strings in C? - Stack Overflow

    7 Whenever you are trying to compare the strings, compare them with respect to each character. For this you can use built in string function called strcmp (input1,input2); and you should use …

  5. Case Insensitive String Comparison in C - Stack Overflow

    Case Insensitive String Comparison in C Asked 14 years, 8 months ago Modified 1 year, 1 month ago Viewed 258k times

  6. winapi - Trim a string in C - Stack Overflow

    Dec 18, 2013 · Here's my implementation, behaving like the built-in string functions in libc (that is, it expects a c-string, it modifies it and returns it to the caller). It trims leading spaces & shifts …

  7. c - Why memory functions such as memset, memchr... are in …

    Mar 20, 2012 · I wonder, why such function as: -memset -memmov -memchr -memcpy Exist in string.h header file, but not in stdlib.h file, where there are other standard memory functions as …

  8. Difference between string.h and cstring? - Stack Overflow

    Dec 5, 2011 · What is the difference between string.h and cstring? Which one should be used for C and which one for C++ (if at all)?

  9. Replace a string in C without string.h library - Stack Overflow

    Feb 15, 2022 · I want to make a function which will replace two strings without using <string.h> library. In order to achieve that, I used 6 manually written functions which are together …

  10. What is the use of the c_str() function? - Stack Overflow

    Sep 14, 2011 · c_str () converts a C++ string into a C-style string which is essentially a null terminated array of bytes. You use it when you want to pass a C++ string into a function that …