Posts by Lucas Araújo • 73 points
6 posts
-
2
votes1
answer64
viewsQ: Problems with the realloc() function in C language
Hello guys! I am implementing a code to insert a kind of table into a pointer and relocate memory while the function add() is being executed, the function name() will be executed only once to set…
-
0
votes2
answers209
viewsA: Vowel count
His main mistake was not having checked the vowels after reading the letter that would be replaced, example: #include <stdio.h> #include <string.h> #include <locale.h> #define MAX…
canswered Lucas Araújo 73 -
-1
votes1
answer40
viewsQ: How can I find out, using the C language, which graphical environment is installed on Linux?
How can I find out which graphical environment is installed? Example: KDE, GNOME, XFCE or LXDE?
-
1
votes3
answers8939
viewsA: What is the correct way to declare a string in C?
Note that declaring a char pointer, if you do not declare the contents of the string directly, may generate an error Segmentation fault (for accessing improper addresses), since no memory was…
-
3
votes2
answers6288
viewsA: Get the current date directly from the machine
In the header file time.h there are functions and types of data to manipulate time and date information. The type of data struct tm defines a structure to be used in functions working with date and…
-
1
votes2
answers2753
viewsA: Capturing user keystrokes in Python on Linux
Complementing the response of stderr, I found out by chance the following: When executing the above code and pressing any key, a Key, example (image): I just changed the code by adding the Key…