03-20-2019
Don't be embarassed! C is very different from most languages. It's a high-level language which writes pure assembly, with all the safety you get from pure assembly...
10 More Discussions You Might Find Interesting
1. Programming
sometimes for this code i get a segmentation fault for codes llike this
:
int main{
int * a= 0;
int b;
a = (int*)malloc(sizeof(int));
///some code using these variable but no freeing of a
if(a){
free(a);
a = 0;
}
return... (3 Replies)
Discussion started by: wojtyla
3 Replies
2. AIX
Hi ,
During execution a backup binary i get following error
"Program error 11 (Segmentation fault), saving core file in '/usr/datatools"
Riyaz (2 Replies)
Discussion started by: rshaikh
2 Replies
3. Linux
Hi,
on a linux Red HAT(with Oracle DB 9.2.0.7) I have following error :
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
Segmentation fault
What does it mean ? And the solution ?
Many thanks. (0 Replies)
Discussion started by: big123456
0 Replies
4. Programming
If I do this.
Assume
struct life
{
char *nolife;
}
struct life **life;
// malloc initialization & everything
if(life->nolife == 0)
Would I get error at life->nolife if it is equal to 0.
wrong accession? (3 Replies)
Discussion started by: joey
3 Replies
5. Programming
I'm getting a segmentation fault. I'm new to Linux programming. Thanks so much for all of your input.:eek:
#include </usr/include/mysql++/mysql++.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <string.h>
using namespace std;
int outputToImport(const char*... (1 Reply)
Discussion started by: sepoto
1 Replies
6. Programming
i have this code
int already_there(char *client_names, char *username) {
int i;
for(i = 0; i<NUM; i++) {
printf("HERE\n");
if (strcmp(client_names, username)==0) return(1);
}
return(0);
}
and i get a segmentation fault, whats wrong here? (7 Replies)
Discussion started by: omega666
7 Replies
7. UNIX for Advanced & Expert Users
What does this mean and why is this happening?
$ ps -ef | grep ocular
Segmentation fault (core dumped)
$ ps -ef | grep ocular
Segmentation fault (core dumped)
$ ps aux | grep ocular
Segmentation fault (core dumped)
$ ps
Segmentation fault (core dumped)
$ pkill okular
$ ps... (1 Reply)
Discussion started by: cokedude
1 Replies
8. Programming
I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this :
i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies
9. Homework & Coursework Questions
this is a network programming code to run a rock paper scissors in a client and server.
I completed it and it was working without any error. After I added the findWinner function to the server code it starts giving me segmentation fault.
-the segmentation fault is fixed
Current problem -Also... (3 Replies)
Discussion started by: femchi
3 Replies
10. Solaris
Hi Guys,
I just installed and booted a zone called testzone. When I logged in remotely and tried changing to root user I get this error:
"Segmentation fault"
Can someone please help me resolve this?
Thanks alot (2 Replies)
Discussion started by: cjashu
2 Replies
xsd(1) xsd(1)
NAME
xsd - Mono's utility for generating schema or class files
SYNOPSIS
xsd <schema.xsd> /classes [options]
xsd <schema.xsd> /dataset [options]
xsd <assembly>.dll|<assembly>.exe [options]
xsd <instance.xml> [<instance.xml> ...] [options]
DESCRIPTION
xsd is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks:
Generate serializable classes
From a given XML schema, generate a class that can be used to read and write xml documents that conform that schema (/classes
option).
Generate typed datasets
From a given XML schema, generate a typed DataSet class that can be used to read and write xml documents that conform that schema
(/dataset option).
Generate XML schemas
From a given assembly and an optional type name, generate an XML schema that can be used to validate the xml documents that can be
obtained by serializing objects of that type. If no type is provided, xsd generates a schema for all types in the assembly. When
specifying the assembly name do not include the file extension (.dll or .exe). xsd will look for the assembly using the standard
assembly loading rules.
Infer XML schemas
From a given set of XML documents, infer the XML schema that can be used to validate those documents.
OPTIONS
The following options are available:
/element:name /e:name
Specifies the name of the XML schema element for which a class or a dataset has to be generated.
/namespace:name /n:name
Specifies the namespace of the XML schema element for which a class or a dataset has to be generated.
/language:name /l:name
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual
Basic.NET).
/generator:type,assembly /g:type,assembly
Indicates xsd.exe to use custom CodeDomProvider to generate code. The type name must be full name. Assembly name is a local file
name that is going to be loaded. The specified Type must have the default constructor.
/outputdir:path /o:path
Specifies the directory where to generate the code or schemas.
/type:name /t:name
Specifies the full name of the type (including namespace) for which to generate the XML schema.
/help /h
Show usage help.
AUTHORS
Lluis Sanchez Gual (lluis@ximian.com)
Atsushi Enomoto (atsushi@ximian.com)
LICENSE
xsd is released under the terms of the GNU GPL.
SEE ALSO
disco(1), soapsuds(1), mono(1), mcs(1), wsdl(1)
xsd(1)