10 More Discussions You Might Find Interesting
1. Programming
I am trying to reverse complement DNA sequence (string) with a short c++ code using boost library. Code was compiled without any warning/error, but ran into Segmentation fault.
My guess is the function to return a vector, but not sure.
#include <iostream>
#include <fstream>
#include <string>... (14 Replies)
Discussion started by: yifangt
14 Replies
2. Programming
Hi
I have struggling a week to fix a program , in the begining i got SIGBUS , but after many attempts still the program gets SIGSEGV segment fault , In bellow i post the seg fault log + source codes. would really appreciate if experts help me to fix this segment fault error. any advice is... (2 Replies)
Discussion started by: pooyair
2 Replies
3. Programming
I always get segment fault, why? can sb help me and modify it, I have spend on much time on
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <string.h>
#define MAX 10
pthread_t thread;
void *thread1()
{
int *a;
int i, n;
... (1 Reply)
Discussion started by: yanglei_fage
1 Replies
4. Programming
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
Discussion started by: royalibrahim
7 Replies
5. Programming
My OS (Debian) and gcc use the UTF-8 locale. This code says that the char size is 1 byte but the size of 'a' is really 4 bytes.
int main(void)
{
setlocale(LC_ALL, "en_US.UTF-8");
printf("Char size: %i\nSize of char 'a': %i\nSize of Euro sign '€': %i\nLength of Euro sign: %i\n",... (8 Replies)
Discussion started by: cyler
8 Replies
6. Programming
Hi all
In the ltp-posix test,there is a case in open_posix_testsuite\conformance\interfaces\timer_gettime\speculative/6-1.c
I run the above code,it will has a segment fault, if I modify it to below,it works well
Anybody can tell me why? (1 Reply)
Discussion started by: yanglei_fage
1 Replies
7. Programming
In a declaration, I have:
const char comment_begin = "<!--";
const char comment_end = "-->";
const int comment_begin_len = strlen(comment_begin);
const int comment_end_len = strlen(comment_end);
When I compile, I get the warnings:
emhttpc.c:64: warning: initializer element is not... (10 Replies)
Discussion started by: cleopard
10 Replies
8. Programming
When run it, segment fault.
What is wrong?
#include <stdio.h>
#include <stdlib.h>
const int max =20;
//****************************************************
// Input Matrix
//****************************************************
void inMatrixAA(int *AA, int row, int col)... (9 Replies)
Discussion started by: zhshqzyc
9 Replies
9. Shell Programming and Scripting
Hello,
Just a little problem with the ksh function : strlen
I want to use this function in this little ksh program :
while read line ; do
TOTO=$line
TOTONB=strlen($TOTO)
echo $TOTONB (3 Replies)
Discussion started by: steiner
3 Replies
10. Programming
hello,
i have a problem with strlen. I have written this:
for(y=13,z=0; cInBuf!=' ';y++)
{
cBuf=cInBuf;
z++;
}
len = strlen(cBuf);
out=len/2;
fprintf(outfile,"F%i",out);
If strlen is e.g. 22, it write F22. I want to write F2F2.
How can i do this?... (5 Replies)
Discussion started by: ACeD
5 Replies
Pod::WSDL::Writer(3pm) User Contributed Perl Documentation Pod::WSDL::Writer(3pm)
NAME
Pod::WSDL::Writer - Writes XML output for Pod::WSDL (internal use only)
SYNOPSIS
use Pod::WSDL::Writer;
my $wr = new Pod::WSDL::Writer(pretty => 1, withDocumentation => 1);
DESCRIPTION
This module is used internally by Pod::WSDL. By using AUTOLOADing it delegates all unknown methods to XML::Writer. It is unlikely that you
have to interact directly with it. If that is the case, take a look at the code, it is rather simple.
METHODS
new
Instantiates a new Pod::WSDL::Writer. The method can take two parameters "pretty" with a true value triggers pretty printing of the WSDL
output. "withDocumentation" with a true value produces a WSDL docuemnt containing documentation for types and methods.
wrNewLine
Has XML::Writer write a newline
wrElem
Has XML::Writer write an Element. The first argument is one of (empty|start|end), to write an empty element, a start or an end tag. The
second argument signifies the name of the tag. All further arguments are attributes of the tag (does not work, when first argument is
'end')
wrDoc
Writes the string passed to the method as a <wsdl:documentation> Element
registerWrittenFaultMessage
There needs to be only one fault message per fault type. Here the client class can register fault types already written. The fault name is
passed as the single argument to this method.
faultMessageWritten
Counterpart to registerWrittenFaultMessage. The client can ask if a fault message has already written. The fault name is passed as the
single argument to this method.
output
Returns XML output.
EXTERNAL DEPENDENCIES
XML::Writer
EXAMPLES
see Pod::WSDL
BUGS
see Pod::WSDL
TODO
see Pod::WSDL
SEE ALSO
Pod::WSDL
AUTHOR
Tarek Ahmed, <bloerch -the character every email address contains- oelbsk.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Tarek Ahmed
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.
perl v5.10.1 2010-12-18 Pod::WSDL::Writer(3pm)