Trying to run command this from a Python script: gh api "/search/code?q=somecode" --jq ".items[] | { "file": .path, "repo": .repository[\"full_name\" ...
Trying to run command this from a Python script: gh api "/search/code?q=somecode" --jq ".items[] | { "file": .path, "repo": .repository[\"full_name\" ...
I’m learning C, dealing with strings and pointers. An exercise calls for deleting all leading characters (‘X’ in this case) before a string. The calle ...
This is an array of strings in C language. I try to print the elements, but the program doesn't print them. What is the error in the code? #include & ...
I just started programming in C and I see on the internet people declaring chars like, for example, char name[], without putting any number between th ...
Is there a way to have raw string literals that is aware of the indentation? e.g. prints but I would like I see this answer solves this, but ...
Formatted string literals (:+) are used to show the sign of a number (+ or -). e.g: or If the output is 0, it is given as +0. Is there a way in ...
Consider a BasicCharp class with two constructors: template <class CharType> class BasicCharp { public: using value_type = CharT ...
Is it guaranteed that "stuff" != nullptr and "" != nullptr? An online search did not give useful results. Edit: I am asking if it is guaranteed that ...
The question requires the name to be a string literal. Is it possible to store string literals into a txt file using fwrite? The s[i].name contains ...
I have an unordered_map which is supposed to mimic a filter, taking key and value as std::string_view respectively. Now say I want to compare two filt ...
In the following example I try to emplace_back() a string literal and a string_view into an std::pair of string_views. However, my problem is that emp ...
Trying to use the newly introduced C# 11 feature Raw string literals, as you can see in the following example: _logger.LogCritical($""" new valu ...
//Prime function However, when I choose to return an int data type, it works perfectly. ...
I have two functions, and both can return an empty string, so what is the best practice to save memory and avoid duplicated .txt empty string? Exampl ...
Hello I am very new to C and I have a simple question. Why does the second method of assigning a string to char name2[] not work? It causes a compilat ...
I'm writing a simple program in c, that prints all elements of an array. The array is the program is So, the problem is that the options arent p ...
Is the following code valid/good practice in C? It compiles fine, so I assume it is fine (also since it is just syntactical sugar for an if-else bl ...
I am trying to run the following code which takes string parameter and returns the length of the string in characters in C language using Visual Studi ...
i,m trying to write this code, it should counting the number of substring, which are not including in the string, for examples(below), in the main i w ...
Hi I'm pretty new to C and still don't have a full understanding of pointers, but essentially I'm trying to copy the result of my encryption to the re ...