11-28-2008
What is your expected output?
10 More Discussions You Might Find Interesting
1. Programming
I have a class with an integer pointer, which I have not initialized to NULL in the constructor. For example:
class myclass
{
private:
char * name;
int *site;
}
myclass:: myclass(....)
: name(NULL)
{
.....
}
other member function “delete “ the variable before... (2 Replies)
Discussion started by: sureshreddi_ps
2 Replies
2. Programming
I received a warning when I tried to compile my program that said:
warning: comparison between pointer and integer
Could you please explain to me what this means, and in what ways I could possibly fix this?
Thanks for your help! (2 Replies)
Discussion started by: sjung10
2 Replies
3. Programming
strcat dumping core in the situation like
main()
{
char* item;
char* p=sat_item;
char type;
item=(char*) malloc(strlen(p));
strncpy(type,p,4);
type='\0';
strcat(item,type); //dumping core
}
I couldn't get why strcat dumping core? (3 Replies)
Discussion started by: satish@123
3 Replies
4. Shell Programming and Scripting
Hi all,
How does string concatenation work in shell scripting?
I basically have a variable called "string" and I want to add the strings "aaa" "bbb" "ccc" "ddd" to the variable "string". These strings would be added based on some conditions and separated by spaces . So "string" might look... (8 Replies)
Discussion started by: felixmat1
8 Replies
5. Programming
If one wants to get a start address of a array or a string or a block of memory via a function, there are at least two methods to achieve it:
(1) one is to pass a pointer-to-pointer parameter, like:
int my_malloc(int size, char **pmem)
{
*pmem=(char *)malloc(size);
if(*pmem==NULL)... (11 Replies)
Discussion started by: aaronwong
11 Replies
6. Programming
I use solaris10,following is tcp client code:
#include "cliserv.h"
int main(int argc,char argv){
struct sockaddr_in serv;
char request,reply;
int sockfd,n;
if(argc!=2)
err_quit("usage: tcpclient <IP address of server>");
if((sockfd=socket(PF_INET,SOCK_STREAM,0))<0)
... (1 Reply)
Discussion started by: konvalo
1 Replies
7. Programming
Anyone have any ideas why when using strcat function I would get some garbage at the beginning of the output string? what I'm doing is something like the following example.
Code:
char temp;
char tempHolder;
for(int i=0;i<something;i++){
sprintf(temp,"%u ", someVariable);... (2 Replies)
Discussion started by: airon23bball
2 Replies
8. Programming
Hi guys :D
I am still playing with my C handbook and yes, as you can see I have small problem as always :cool:
I wrote a C code
#include <stdio.h> #define MESSAGE 100 int main(void) { char input_mes - Pastebin.com
And when I try to compile it I get following errors from gcc
... (1 Reply)
Discussion started by: solaris_user
1 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to write a programme which scans strings to find how many vowels they contain. I get an error saying that I'm trying to compare a pointer and an integer inif(*v == scanme){. How can I overcome this ? Also, the programme seems to scan only the first word of a string e.g.: if I type "abc... (1 Reply)
Discussion started by: fakuse
1 Replies
10. Programming
Hello,
#include <stdio.h>
#include <string.h>
void main()
{
char tab={"12"};
FILE *outfile;
char *outname = "/home/dir/";
printf("%s",strcat(outname,tab));
outfile = fopen(strcat(outname,tab), "w");
if (!outfile) {
printf("There was a problem opening %s for writing\n", outname);
... (2 Replies)
Discussion started by: chercheur857
2 Replies
LEARN ABOUT DEBIAN
biber::output::base
Biber::Output::base(3pm) User Contributed Perl Documentation Biber::Output::base(3pm)
NAME
Biber::Output::Base - base class for Biber output modules.
new
Initialize a Biber::Output::Base object
set_output_target_file
Set the output target file of a Biber::Output::Base object
A convenience around set_output_target so we can keep track of the
filename
set_output_target
Set the output target of a Biber::Output::Base object
set_output_head
Set the output head of a Biber::Output::Base object
$data could be anything - the caller is expected to know.
set_output_tail
Set the output tail of a Biber::Output::Base object
$data could be anything - the caller is expected to know.
get_output_head
Get the output head of a Biber::Output object
$data could be anything - the caller is expected to know.
Mainly used in debugging
get_output_tail
Get the output tail of a Biber::Output object
$data could be anything - the caller is expected to know.
Mainly used in debugging
add_output_head
Add to the head output data of a Biber::Output::Base object
The base class method just does a string append
add_output_tail
Add to the tail output data of a Biber::Output::Base object
The base class method just does a string append
set_output_section
Records the section object in the output object
We need some information from this when writing the .bbl
get_output_section
Retrieve the output section object
get_output_entries
Get the sorted order output data for all entries in a list as array ref
get_output_entry
Get the output data for a specific entry.
Used really only in tests as it instantiates list dynamic information so
we can see it in tests
set_los
Set the output list of shorthands for a section
get_los
Get the output list of shorthands for a section as an array
set_output_entry
Add an entry output to a Biber::Output::Base object
The base class method just does a dump
create_output_misc
Create the output for misc bits and pieces like preamble and closing
macro call and add to output object.
create_output_section
Create the output from the sections data and push it into the
output object.
set_output_keyalias
Set the output for a key which is an alias to another key
set_output_undefkey
Set the output for an undefined key
output
Generic base output method
AUTHORS
Francois Charette, "<firmicus at ankabut.net>" Philip Kime "<philip at kime.org.uk>"
BUGS
Please report any bugs or feature requests on our sourceforge tracker at <https://sourceforge.net/tracker2/?func=browse&group_id=228270>.
COPYRIGHT & LICENSE
Copyright 2009-2012 Francois Charette and Philip Kime, all rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
perl v5.14.2 2012-06-17 Biber::Output::base(3pm)