by: John Galt |
last post by:
I am writing a rudimentary shell. The (idealized) code is like this:
/* read_cmd returns argv */
char **read_cmd();
shell()
{
char **cmd;
while {
|
by: Rick |
last post by:
Hi,
I was wondering, can it be safely assumed that any function that returns
a *char will return a NULL terminated string? Or does the function
explicitly mention this always (and the ones that...
|
by: smen |
last post by:
hiye, i use sqlcommand.executescalar to insert datainto
my table hoping that it will return the table id, but its
not :(. can someone uot there tell mehows its done?
thanks in advance.
|
by: sk |
last post by:
I'm trying to write a little function that acts very similar to scanf,
but I suck at pointers and returning chars.
My code:
char *getline(){
char *string;
char c;
int i=0;...
|
by: Robert Smith |
last post by:
I am wondering why it is possible to return a pointer to a string literal
(ie. 1) but not an array that has been explicitly allocated. (ie. 2) ?
Both would be allocated on the stack, why does the...
|
by: noridotjabi |
last post by:
Why is it not possible to return char** from a funcion. For example:
char** foo(void) {
char foobar = {"foo", "bar"};
return foobar;
}
int main(void) {
printf("%s\n", foo());
|
by: Joey Sabey |
last post by:
Hey, I've got a bit of a strange problem caused by a situation I'm in.
I'm writing a DLL for a friend of mine in C++, and he plans to use it
in delphi. The DLL needs to return strings, and we doubt...
|
by: rkpatil |
last post by:
have an unmanaged C++ DLL with following method:
the DLL interface for unmanaged C++ is:
SendCommand(void *h, char *c, char *d, char *b);
the declaration in C# is:
unsafe public static...
|
by: mehafi |
last post by:
Hi,
Why this program work?
#include<iostream.h>
class test
{
public:
char *ptr;
void setPtr(char* p){
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|