Displaying 2 results from an estimated 2 matches for "nbind".
Did you mean:
bind
2014 Mar 19
1
Memcheck: Invalid read of size 4
...1 (kml.c:183)
...
==27283== by 0x10C5DE4F: kml1 (kml.c:151)
...
==27283== at 0x10C5DF90: kml1 (kml.c:198)
--- 8< ----------------
Here is the function kml1 from the file kml.c (I add some comments to tag the lines 151, 183 and 198)
--- 8< ----------------
void kml1(double *traj, int *nbInd, int *nbTime, int *nbClusters, int *maxIt, int *clusterAffectation1, int *convergenceTime){
int i=0,iter=0;
int *clusterAffectation2=malloc(*nbInd * sizeof(int)); // lines 151
double *trajMean=malloc(*nbClusters * *nbTime * sizeof(double));
for(i = 0; i &l...
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
...ientaddr.sin_family = AF_INET;
clientaddr.sin_addr.s_addr = INADDR_ANY;
clientaddr.sin_port = htons(CLIENT_PORT);
sd = socket(AF_INET, SOCK_STREAM, 0);
printf("\nCreated socket ...");
bind(sd,(struct sockaddr *) &clientaddr, sizeof(clientaddr));
printf("\nBinding successful ...");
connect(sd,(struct sockaddr *) &serveraddr, sizeof(serveraddr));
printf("\nConnected ...");
*msg=(char)"Action: Login\r\nUsername: admin\r\nSecret:
admin\r\nActionID: 1\r\n\r\n";
send(sd,msg,strlen(msg)+1,0);
close(sd);
re...