Topics

C String

About this topic: Articles tagged __TAG__

Showing 18 articles

Topics

Articles

Showing 18 articles

How-tos How to Compare Strings in C This article introduces how to compare strings in C, covering essential methods like `strcmp`, `strncmp`, and manual comparison. Learn the nuances of string representation and gain … How-tos How to Use strtok Function in C This article introduces how to use the strtok function in C, providing a comprehensive guide on tokenizing strings. Learn the syntax, explore practical examples, and understand … How-tos How to Convert String to Lowercase in C This article introduces how to convert a string to lowercase in C. Discover various methods, including using standard library functions, custom functions, and pointer arithmetic. … How-tos How to Check if String Contains Substring in C This article demonstrates how to check if a string contains a substring in C. Explore various methods including using the strstr function, manual search with loops, and utilizing … How-tos How to Use the strsep Function in C This article introduces how to use the strsep function in C, a powerful tool for parsing strings. Learn the advantages, common pitfalls, and see clear examples of how to tokenize … How-tos How to Use the strdup Function in C This article demonstrates how to use the strdup function in C effectively. Learn about string duplication, error handling, and memory management with practical examples and … How-tos How to Truncate String in C This article introduces how to truncate strings in C, exploring various methods like manual assignment, using strncpy, and custom loops. Learn effective techniques for string … How-tos Scanf String With Spaces in C This article explains how to take user input in C, focusing on reading strings with spaces. Learn about methods like fgets and custom input functions, and avoid common pitfalls … How-tos Null Terminated Strings in C Explore the intricacies of null-terminated strings in C with this comprehensive tutorial. Learn how to create, manipulate, and avoid common pitfalls associated with these strings. … How-tos How to Get Substring in C This article introduces how to get a substring in C, covering various methods like custom functions, `strncpy`, and pointer arithmetic. Learn to manipulate strings efficiently and … How-tos How to Convert an Integer to a String in C This tutorial introduces different methods in C to convert an integer into a string. It describes the use of the sprintf(), snprintf(), and itoa() functions in C. How-tos How to Concatenate String and Int in C This article introduces how to concatenate string and int in C How-tos How to Get a Substring in C This tutorial introduces different methods in C to get a substring from a char. This tutorial describes the use of memcpy() function, strncpy() function, pointer arithmetic, and … How-tos How to Convert a String to Integer in C This article introduces different methods in C to convert a string into an integer How-tos How to Concatenate Strings in C This article demonstrates how to use concatenate string literals in C How-tos How to Trim a String in C This article demonstrates how to trim a string in C. How-tos How to Create Formatted Strings in C This is a compact article about formatting strings in C programming language. How-tos Array of Strings in C This article introduces how to declare array of strings in C

← All topics