Posts by Vander Santos • 219 points
3 posts
-
5
votes1
answer49
viewsA: Problems invoking external Libs functions in React
To try to play your error, I created the following files: index.html <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script…
-
0
votes2
answers90
viewsA: Printf() showing strange characters
The function strncpy does not put the \0 at the end of the copy when the amount of characters to be copied is less than the copied string. Try this: if (sizeOfPiece == sizeSecondString) {…
-
4
votes1
answer51
viewsA: Is there a more efficient method of traversing a JSON and returning its index than FOR?
The variable data is not JSON, it is a Javascript object. And in reality, its problem is to locate a specific object in an array of objects. For that there is the function findIndex(). You could try…