Related
good man I have the following code. const char* my_input = "my string";
void my_function(char* my_argument);
int main()
{
my_function(my_input);
}
void my_function(char* my_argument)
{
/* Do something */
}
Note that the argument to my_function expects
good man I have the following code. const char* my_input = "my string";
void my_function(char* my_argument);
int main()
{
my_function(my_input);
}
void my_function(char* my_argument)
{
/* Do something */
}
Note that the argument to my_function expects
good man I have the following code. const char* my_input = "my string";
void my_function(char* my_argument);
int main()
{
my_function(my_input);
}
void my_function(char* my_argument)
{
/* Do something */
}
Note that the argument to my_function expects
good man I have the following code. const char* my_input = "my string";
void my_function(char* my_argument);
int main()
{
my_function(my_input);
}
void my_function(char* my_argument)
{
/* Do something */
}
Note that the argument to my_function expects
but Some background; I have to connect an EEprom that has an I2C interface. I want to save an array of floats in memory and then read it back. I want to make it asap. Currently, I have the following solution for this, which works great. float a[5];
unsigned ch
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
username So I need to call a C function from Java using JNI. I've been able to do this successfully when passing different data types (create native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is my C funct
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
User 6373390: So I need to call a C function from Java using JNI. I've been able to do this successfully when passing in different data types (creating native variables, header files, shared libraries, etc.), but can't get it to work with byte arrays. Here is
Dan Brenner I'm trying to write a function that takes a const char *as a parameter, but I don't know how to pass such data to the function in a useful way. If I have the function: void tokenize(const char * c) { }
I want to call this function with a hardcoded
Dan Brenner I'm trying to write a function that takes a const char *as a parameter, but I don't know how to pass such data to the function in a useful way. If I have the function: void tokenize(const char * c) { }
I want to call this function with a hardcoded
Dan Brenner I'm trying to write a function that takes a const char *as a parameter, but I don't know how to pass such data to the function in a useful way. If I have the function: void tokenize(const char * c) { }
I want to call this function with a hardcoded
username I am giving me my entire code. It's a bit long, so I most sincerely hope you get: #include <iostream>
using namespace std;
char const* reverseWordsOnly(const char* s)
{
int k;
int p = strlen(s);
for (int i = 0; i <= p; i++)
{
username I am giving me my entire code. It's a bit long, so I most sincerely hope you get: #include <iostream>
using namespace std;
char const* reverseWordsOnly(const char* s)
{
int k;
int p = strlen(s);
for (int i = 0; i <= p; i++)
{
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Gábor Marschall I want to use this function to call the PlaySoundA function, but the sound file I want to play doesn't open. void AudioClass::playAudio(const char* incomingData, const char* filePath)
{
char buffer[100]; // <- danger, only storage for 100
Morpheus: In my project there is a method that just returns a const char*and I need a char*string because the API doesn't accept it const char*. Any ideas how to convert const char*between char*? Meaning matters: To be on the safe side, don't break things (e.g
Good night I am trying to use the execv() function. I am trying to pass my parameter command to the left. execv(file,arguments);
I'm using char* to parse my shell's input user input. The second parameter of execv takes a char *const*. Is there a way to cast
Morpheus: In my project there is a method that just returns a const char*and I need a char*string because the API doesn't accept it const char*. Any ideas how to convert const char*between char*? Meaning matters: Just to be on the safe side, don't break things