Not if it's cast from char* to const char* but the other way around...sure!
Like shamrock says you may need to modify something to fix it. Since you haven't posted line 200 (and a bit of context) we don't know exactly what's making it throw up though.
Hi, I'm converting a C program that I made using the Visual Studio. I now use GCC (over Linux) and can't find some equivalences. I changed my __int64 definitions to unsigned long long, but can't find an equivalent to the microsoft i64toa() function, which let you convert a char* to a 64 bit... (1 Reply)
hello everybody!
I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(){
int fileDescriptor;
fileDescriptor =... (2 Replies)
I have an HP PPM (ITG) application that is running an awk command in cygwin bash shell as part of ITG process moving SAP transports on a Windows 2003 server. The awk command checks the first two characters of a file containing return code that was retrieved from the SAP server. It is throwing the... (3 Replies)
hello everybody!
i have aproblem! i dont know how to concatenate const char* with char
const char *buffer;
char *b;
sprintf(b,"result.txt");
strcat(buffer,b);
thanx in advance (4 Replies)
I am writing some code in C++ to print a message using fprintf
Here is an example
void pr_desc(
FILE* stream,
int shift,
const char* desc) {
const char* format="%*s\e;
fprintf(stream,format,shift,"",desc);
}
I call it using
const char* desc;
... (4 Replies)
Dear all,
I am using C and ROOT for programming. And I need to incorporate following in my code.
char *fps=NULL;
int dec=0,sign=0;
float mean = h1->GetMean(1); //0.001298
fps= fcvt(mean,6 , &dec, &sign);
I need to provide this mean as const char to some other function to get... (8 Replies)
Hello there,
I am new to the awk scripting and getting the following error while running the script. Please can you advise me how to resolve this . Thanks
./sub_del_awk_lat.sh
awk: cmd. line:5: warning: escape sequence `\/' treated as plain `/'
awk: cmd. line:5: sed -n... (6 Replies)
Pointers are seeming to get the best of me and I get that error in my program.
Here is the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REPORTHEADING1 " Employee Pay Hours Gross Tax Net\n"
#define REPORTHEADING2 " Name ... (1 Reply)
I have a problem at make step to install a downloaded package consisted of different programs.
In file included from kcdbext.cc:16:0:
kcdbext.h: In member function �char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)’:
kcdbext.h:1281:14: error: cannot convert �bool’ to... (3 Replies)
Discussion started by: yifangt
3 Replies
LEARN ABOUT DEBIAN
xpp_sync
XPP_SYNC(8) User Contributed Perl Documentation XPP_SYNC(8)NAME
xpp_sync - Handle sync selection of Xorcom Astribanks.
SYNOPSIS
xpp_sync <auto|dahdi|nn>
xpp_sync [-v]
DESCRIPTION
On a normal operation one Astribank device provides timing for all the other Astribank devices.
When run without parameters, xpp_sync will display a list of Astribanks (xbuses) that are connected and registered as Dahdi spans. The
current xpp sync master will be marked.
If you this an Astribank is connected and yet it does not appear on the output of xpp_sync, it may be unregistered. Try running
dahdi_registration .
Parameters
auto
Automatically selects the best Astribank for syncing.
dahdi
Gets synchronization from the Dahdi sync master.
nn Sets XBUS-nn as sync source.
-v Also print the numeric xpp sync rank.
(Parameter name is case-insensitive)
Example output:
Setting SYNC
Current sync: 01
Best Available Syncers:
+ XBUS-01 (usb-0000:00:10.4-3) [usb:12345678] [ PRI_TE PRI_NT PRI_TE PRI_NT ]
XBUS-00 (usb-0000:00:10.4-2) [usb:QA-01] [ FXS FXO ]
==================================================
WARNING: FXO which is not the syncer cause bad PCM
Affected Astribanks are:
--------------------------------------------------
XBUS-00
==================================================
In this example we see that the recommended xpp sync master is XBUS-02 - it is the first on the list. It is also the actual syncer, as we
can see from the '+' beside it.
xpp_sync is normally called from the dahdi init.d script. The parameter it is called with defaults to auto, but it is possible to override
that parameter (e.g: set it to dahdi) through the value of XPP_SYNC in /etc/dahdi/init.conf .
FILES
/proc/xpp/sync
(Deprecated: no longer supported) xpp_sync is essentially a nicer interface to /proc/xpp/sync . That file shows the current xpp sync
master (and in what format you need to write to it to set the master).
SEE ALSO dahdi_registration(1), dahdi_cfg(1), README.Astribank
perl v5.14.2 2009-09-30 XPP_SYNC(8)