Related
username I have the following function: CREATE OR REPLACE FUNCTION BANINST1."F_COC_AUTO_AWARD_FILTER" (pidm number) return number
as
return_field number;
cursor get_pidm is
select distinct SHRDGMR.SHRDGMR_PIDM
from SATURN.SHRDGMR SHRDGMR,
SATURN.SORLCUR
under the moonlight I have to call a method with the following signature: int sendTo(const void* buffer, int length, const SocketAddress& address, int flags=0); My first question is: What exactly const void* bufferdoes that mean? My intention: it means it's a
AsiandudeCom I want to randomize my string so here is my code. while(strcmp(word,"END")!=0)
{
printf("Enter word");
fgets(input,sizeof(input),stdin);
sscanf(input,"VERTEX %s",key1);
strcpy(list[count],key1);
count++;
}
random(list);
I declare list and key1 as
username I have the following function: CREATE OR REPLACE FUNCTION BANINST1."F_COC_AUTO_AWARD_FILTER" (pidm number) return number
as
return_field number;
cursor get_pidm is
select distinct SHRDGMR.SHRDGMR_PIDM
from SATURN.SHRDGMR SHRDGMR,
SATURN.SORLCUR
under the moonlight I have to call a method with the following signature: int sendTo(const void* buffer, int length, const SocketAddress& address, int flags=0); My first question is: What exactly const void* bufferdoes that mean? My intention: it means it's a
AsiandudeCom I want to randomize my string so here is my code. while(strcmp(word,"END")!=0)
{
printf("Enter word");
fgets(input,sizeof(input),stdin);
sscanf(input,"VERTEX %s",key1);
strcpy(list[count],key1);
count++;
}
random(list);
I declare list and key1 as
Bruno Ely In C, why can I pass a character array to a function that takes a char *as a parameter, but not the address of the array to a function that takes a char **? UPDATE: Interestingly, changing the parameter type char* qux[12]to does n't completely change
Bruno Ely In C, why can I pass a character array to a function that takes a char *as a parameter, but not the address of the array to a function that takes a char **? UPDATE: Interestingly, changing the parameter type char* qux[12]to does n't completely change
Bruno Ely In C, why can I pass a character array to a function that takes a char *as a parameter, but not the address of the array to a function that takes a char **? UPDATE: Interestingly, changing the parameter type char* qux[12]to does n't completely change
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
tiktak I am trying to get the mac address with the following code: void getMacAdress(unsigned char **address)
{
int s;
struct ifreq buffer;
s = socket(PF_INET, SOCK_DGRAM, 0);
memset(&buffer, 0x00, sizeof(buffer));
strcpy(buffer.ifr_name,
Alpha I just started , and I felt comfortable C++writing Javait for a while . So, I have this array, char values[][10] = {"miami", "seattle", "berlin"};
int rows = sizeof values / sizeof values[0];
This is the function where I want to pass the value, // a fu
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
saswat23 I can't pass char array from function to main. Instead of the actual array, it shows some unwanted symbols. please help me. #include <stdio.h>
char* setDestPath (int x, char inp_path[x])
{
int ret, cnt=0, i=0, j, temp=0;
char dest_path[x], out_
Roger Tannous I am passing a buffer (char*) to a function in C. Inside the function, I'm allocating memory for the buffer and appending a string (response from the virtual server). When printed inside the function, the string will appear as the string sent fro
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
Oz123 I'm having a hard time passing charan array to a function: Here is the code found inside a function that calls another function createbitshape: char ans[8];
char bitshp[8];
...
fgets(ans, 10, stdin);
createbitshape(random_num, bitshp);
printf("bitshp out
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
Rabida In my program I may need to load a large file, but not always. So I defined: char** largefilecontents;
string fileName="large.txt";
When I need to load a file, the program calls this function: bool isitok=LoadLargeFile(fileName,largefilecontents);
The
Sorabis I have written the following sample code to demonstrate my problem #include <iostream>
#include <string.h>
using namespace std;
void f (char*** a)
{
*a = new (char*[2]);
*a[0] = new char[10];
*a[1] = new char[10];
strcpy(*a[0], "abcd"
bob jane Below is my function that takes a char array of size 2, passes it to the function, and the function should return the same 2 chars (it's a bit complicated when it comes to communicating with hardware devices). The problem is when I pass char(*in)[2] t
Rabida In my program I may need to load a large file, but not always. So I defined: char** largefilecontents;
string fileName="large.txt";
When I need to load a file, the program calls this function: bool isitok=LoadLargeFile(fileName,largefilecontents);
The
unlimited This item table prints different permutations of strings. If I declare the string as a char array in main and pass the array name in the printAnagram function it works fine. But if I declare string as char *s="hello" and pass 's' it crashes. Why? #in
tiktak I am trying to get the mac address with the following code: void getMacAdress(unsigned char **address)
{
int s;
struct ifreq buffer;
s = socket(PF_INET, SOCK_DGRAM, 0);
memset(&buffer, 0x00, sizeof(buffer));
strcpy(buffer.ifr_name,
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
Andrew Hummel I am trying to pass an initialized array of char pointers to a function. I can't seem to figure out why the function just prints out the number for each element in the array. Does anyone know how I can print each string element from the passed in
saswat23 I can't pass char array from function to main. Instead of the actual array, it shows some unwanted symbols. Please help me. #include <stdio.h>
char* setDestPath (int x, char inp_path[x])
{
int ret, cnt=0, i=0, j, temp=0;
char dest_path[x], out_