C

22K

Solutions

13K

Contributors

C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, so it has found lasting use in applications that had formerly been coded in assembly language, including operating systems as well as various application software for computers ranging from supercomputers to embedded systems. It is distinct from C++ (which has its roots in C) and C#, and many later languages have borrowed directly or indirectly from C.

Share tech news, updates, or what's on your mind.

Sign up to Post

curl_easy_setopt (curl, CURLOPT_CAINFO, ".\\cacert.pem"); //https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html

Having major issues trying to resolve this error.

-----Curl Readable Error Text...-----
error setting certificate verify locations:
CAfile: .\cacert.pem
CApath: noneProblem with the SSL CA cert (path? access rights?)-------------------------------------
"      char [100000]
CURLE_SSL_CACERT_BADFILE

it does not matter what I try this still failed I am sending a secure Endpoint. The normal endpoint work.
0
[Live Webinar] The Cloud Skills Gap
LVL 4
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Hello,
Back when C# came out; I did not know how to pronouns this combination of C and a # (sharp).  Talking to a  developer, he chuckled when I said "C pound."
And now, when "reading" about generic decorators; it is not written as to  how to pronouns these;
*args, **kwargs
Might any one have the phonetics /fəˈnediks/ on these two decorators;
*args, **kwargs

Thanks
0
//************************** tracks indexs*******************
/*
each track saved in sd card has index , so to play track number we will using it's index 
for example to play track number 1 we will using "00003"  index which will send to play track function 
all the same for the rest of all tracks 
*/ 
char buffer15[6]={"00001"};  // track 15 index 
char buffer16[6]={"00002"};  // track 16 index
char buffer1[6]={"00003"};   // track 1 index
char buffer2[6]={"00004"};   // track 2 index
char buffer3[6]={"00005"};   // track 3 index
char buffer4[6]={"00006"};   // track 4 index
char buffer5[6]={"00007"};   // track 5 index
char buffer6[6]={"00008"};   // track 6 index
char buffer7[6]={"00009"};   // track 7 index
char buffer8[6]={"00010"};   // track 8 index
char buffer9[6]={"00011"};   // track 9 index
char buffer10[6]={"00012"};  // track 10 index
char buffer14[6]={"00013"};  // track 14 index

//*************************

Open in new window


How can I access these mp3files via filename not index
0
Is there a tool to calculate line checksum of motorola S3 Record ?

For example, following is line of motorola S3 Record:

S325A000002000000000000000000000000000000000000000000000000000000000000000001A

To calculate checksum manually, one byte of size, four bytes of address, and all data bytes are summed.  Extract least significant byte
from the sum, take it's one's complement and that's the checksum.

Is there a checksum calculator or tool that will calculate the checksum ?
0
Hi guys, m trying to make a program that can increment each character of a user input string bye 1 ,for example if the input =ABC then the output=BCD..I don't know how to do this if anyone can help me in this??
0
Hi, new member here and first post. My goal is to create a basic tab control using the Win32 API that contains a canvas for rendering OpenGL. Please see attachment for my source code. I created a tab control with two tabs; the first tab contains a button and the second tab contains the rendering context. The first tab, when active, successfully displays a button. The second tab, when active, does not display the OpenGL canvas. The only way I can get the canvas to appear in the GUI is to exclude the tab control (comment out the CREATE_TAB_PANE macro in my example to do this). I am rendering the OpenGL context within a static control. Thanks in advance for your help.
OpenGlTabWin32.cpp
0
I have installed 2 different IDM Ultrium-TD3 tape drives and in the 2nd case, I have ALSO installed the lin_tape and lin_taped (daemon).  I also have sg3_utils 1.42, built from source - all this are on x86_64 bit computers.

Many of the commands work, including sg_read_buffer for reading the cartridge memory.

The problem is, commands such as sg_read_attr/sg_write_attr (ioctl 0x8D, 0x8C) whether from a normal C program or from the sg approach, do not ever allow reading or writing the attributes - instead, it leads to an error, such as:

SG_WRITE_ATT_0803 command error: Host_status=0x05 [DID_ABORT]
Error : Write failed (try verbose opt)

I can try either generic /dev devices or /dev/IBM types of devices.  Each gives an error.  In one case, I have an idea for how to try to fix it, but I'm just wondering, is the firmware (mine is 6B20) just not implementing it?  I doubt that's the problem.  I can upload the firmware as hex code but I would like to see the source.

Also, I don't know whether or not running lintape/lintaped matters and whether or not the IBM-generic/IBM-specific/sg-generic drivers are the issue.  I'm trying to pin down what approach to go on next.  There are literally three sets of drivers.  And I don't know whether or not I should install Tivoli.

Given all the variables, I just want to know how to proceed to get to a working sg_read_attr/sg_write_attr command.  I even tried to start with the lowest numbered attribute.

I have also tried external …
0
Hi,

I am using window application. I want to use some cell in the columns as watermark text.

What is the syntax for that and how can we set this function in Win App c#.

My code :

 if ((dtGrid1[1,cnt].Value != null))
 {
                        dtGrid1[2,cnt].ReadOnly = false;
                        dtGrid1[2,cnt].value = "Enter" // Here i want watermark text for Enter
                        dtGrid1[2,cnt].Style.BackColor = Color.DarkGray;
                        dtGrid1.UpdateCellValue(2,cnt);
 }
0
Jane is very interested in programming and she often participates in various coding contests.  Since she is very interested in data structures and algorithms, she participates in the contest for data structures, where she was asked to write a code for the following functions:  

Define a structure:
struct node
{
int data;
struct node * link;
}
Include functions
append --- to add data at the end of the linked list.
Reverse --- to reverse the linked list.
display --- to display all the data in the linked list.

void append ( struct node **, int ) ;
void display ( struct node * ) ;
void reverse (struct node **);

How can you help her to write this code?

Input and Output Format:
Refer sample input and output for formatting specifications.
Sample Input and Output:
Enter the value:
9
Do you want to add another node? Type Yes/No
yes
Enter the value:
10
Do you want to add another node? Type Yes/No
Yes
Enter the value:
26
Do you want to add another node? Type Yes/No
Yes
Enter the value:
8
Do you want to add another node? Type Yes/No
no

The elements in the linked list are: 9 10 26 8
The elements in the reversed linked list are : 8 26 10 9

Sample Input and Output:
Enter the value:
90
Do you want to add another node? Type Yes/No
Yes
Enter the value:
118
Do you want to add another node? Type Yes/No
yes
Enter the value:
90
Do you want to add another node? Type Yes/No
Yes
Do you want to add another node? Type Yes/No
No

The …
0
Create a singly linked list of integers and input an integer z. Your task is to complete the function deleteAllOccurances which deletes all occurrences of a key z present in the linked list. The function takes two arguments: the head of the linked list and an integer z. The function should return the head of the modified singly linked list.
 
Input:
The first input has to be “num” denoting the no of elements of the linked list. Then in the next line are “num” number of space separated values of the linked list. The third line has to contain the integer z, whose all occurrences need to be deleted.

Output:
The space separated values of the linked list after deletion of the integer z.:

Sample Input & Output1:
5
2 2 1 4 4
Enter the element to be deleted: 4
The list after deletion: 2 2 1


Function Signature should be :
void insert(struct node** head_ref, int num)
void deleteKey(struct node **head_ref, int key)


Sample Input & Output2:
6
1 2 2 3 2 3
Enter the element to be deleted: 2
The list after deletion: 1 3 3
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

what is c language?what is it's necessity.?
0
Hi,

This is Ravi...

So far I read everything mentioned above...so I request you to provide one end to end example to do the same... because I am completely new to it...
0
I am in the process of moving legacy codes in c to Intel 64 (ksh) from Unix Tru64 (ksh).  
 I created a basic hello world application in c so I could setup the debugger.   INTEL has instructed me to use the gdb-ia debugger.   I don't know where any manuals are to read this for myself.   I have gotten a few errors along the way that have lead me to add the following lines to my ksh users .profile.  
 export LD_LIBRARY_PATH=/opt/intel/debugger_2017/libipt/intel64/lib
 export PYTHONHOME=/usr
 Currently I am getting an error:  $>gdb-ia ImportError: No module named site
 With every question I ask INTEL, it takes me a business day to get an answer.  So, I've had great luck with Experts Exchange in the past, so I'm back to get some direction.  
 My last correspondence with INTEL was:  
      "Looks like you forgot to source the environment."
        "#source /opt/intel/bin/compilervars.sh intel64"

 Where am I going to add this line of code?   The "#source" makes me think it would go into an include file somewhere.   Can anyone see through this and give me some advice???
 I also have another post out there for mapping Tru64 compiler options to INTEL.  

 Thanks everyone for your help!
0
I'm trying to create illegal instruction reset.  

I'm programming Infineon TC29x Aurix Tricore Microcontroller based embedded system in 'C' language.  

I need to set program counter to illegal address, i.e. 0x00FF FFFC.  Can this be done with assembly language instructions?
If yes, please instrument assembly language instruction that would set program counter to 0x00FF FFFC while code is running.
0
I have following version of eclipse installed in my computer:

Eclipse IDE for C/C++ Developers

Version:  Neon.1a Release (4.6.1)
Build id:  2016 1007-1200

From main menu, I go to Window  -   Preferences  -  Indexer   but Indexer doesn't run ?

I need to run Indexer so I can navigate my source code.
0
Attached is data dump of some example symbol "ast".  This symbol starts at address 0x0000 6814.

What is oriented display and what is line break at 2 power x ?
Orient-Display.PNG
0
Hello everyone,

I am making a code where I should display date and time in the beggining, so since I am still a begginer in C, I found some codes to display it.
#include <stdio.h>
#include <time.h>
void timeNdate();
void main(){
timeNdate();  
getch();
}
void timeNdate(){
char date [6];
char time [6];
_strdate( date );
_strtime( time );
printf("DATE/Time:  %s / %s",date,time);
}

I want to know what is _strtime and _strdate and how are they used, I need to explain this to my professor at the end.
Thank you very much for your help!
0
#include<stdio.h>
#include<conio.h>
#include<ctype.h>

main(){
	char first[100], last[100];
	int i, mon, c, dd, mm, yyyy;
	long double bor, lend, total, term;
	long long long id;
	
	clrscr();
	printf("Lending System\n\n");
	printf("Input Lender ID#: ");scanf("%11d", &id);
	printf("\nLast Name: ");scanf("%s", &last);
	printf("\nFirst Name: ");scanf("%s", &first);
	printf("\nAmount to lend: ");scanf("%Lf", &lend);
	
	printf("\nDate lend: \n");
	Date:
	printf("\n DD [01-31: ");scanf("%d", &dd);
		if (dd<1 || dd>31){
			printf("Enter valid date.");
		goto Date; }
		
	Month:
	printf("\n MM [01-12]: ");scanf("%d", &mm);
		if (mm<1 || mm>12){
			printf("Enter valid month.");
		goto Month; }
		if (mm>0 && mm<13){
			if (dd==28 && mm!=2){
			printf("Enter valid month.");
		goto Month; }
		if (dd==31){
			if(mm==2 || mm==4){
				printf("Enter valid month.");
		goto Month; }
			else if(mm==6 || mm==9){
				printf("Enter valid month.");
		goto Month; }
			else if(mm==11){
				printf("Enter valid month.");
		goto Month; }
		}
		if (dd==30){
			if(mm==2){
				printf("Enter valid month.");
			goto Month; }
		}
	}

Year:
printf("\n YYYY: "); scanf("%d", &yyyy);
	if(dd==28 &&mm==2){
		if(yyyy%4 !=0){
			printf("Enter valid year.");
		goto Year; }
		}

printf("\nInterest Increase: 5%");
printf("\n\nTerm in Months: "); scanf("%d", &mon);
total = lend*1.05;
term = total/(long double)mon;
		
for (c=0; c<100; c++){
	last[c] = toupper(last[c]);}
for (c=0; c<i; c++){
	first[c] = 

Open in new window

0
Hi
I am connecting GSM(SIM 800) module to my PC through serial to USB. I want send SMS to GSM module by PC .
using COM4 port serial communiction in PC(windows 7).
I tried writing this code
#include<stdio.h>// include stdio . h
#include<stdlib.h>// include stdlib . h
void initialize_GSM_modem(void);
void initialize_serialcommunication(void);
unsigned char Command_CMGF[]="AT+CMGF=1\r";
// AT+CMGF for selecting Text Mode
unsigned char CtrlZ=0x1A;
// CTRL+Z for sedning SMS after the message has been entered
unsigned char Command_CMGS[]="AT+CMGS =+9233385xxxxx\r";
// recepient mobile number
unsigned char Command_AT[]="AT\r";
unsigned char msg02[]="Hello!";
void main (void) {
initialize_GSM_modem();
initialize_serialcommunication();
while (1) {
;
}
}
void initialize_GSM_modem(void){
delay2();
puts(Command_AT);
delay2();
puts(Command_CMGF);
delay2();
puts(Command_CMGS);
delay2();
puts(msg02);
delay2();
}
void initialize_serialcommunication(void){
 HANDLE hCom;
 DCB dcb;
BOOL fSuccess;
   TCHAR *pcCommPort = TEXT("COM4"); //  Most systems have a COM1 port

   //  Open a handle to the specified com port.
   hCom = CreateFile( pcCommPort,
                      GENERIC_READ | GENERIC_WRITE,
                      0,      //  must be opened with exclusive-access
                      NULL,   //  default security attributes
                      OPEN_EXISTING, //  must use OPEN_EXISTING
                      0,      //  not overlapped I/O
                      NULL ); //  

Open in new window

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE
LVL 4
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Cross compiling a program - compiler creates the object file but the native linker is being used and failing.
I am feeding the linker as a command line argument to make (as LD).

How do I specify an alternate linker?

Thank you.
0
I have been up the last three nights being paged about high cpu usage on AIX 7.1
I can run nmon the press c then press u and nmon displays the top cpu processes/programs

is there a way to run that in a script and capture the output?

any help would be appreciated
I have tried several options to put the info in a file but cannot get the output desired
the summary of top cpu when running the command includes
PID %CPU ResSize Char Command - don't really need the Char column
0
Hello All,

I have been trying to get some assistance and received various inputs in one of the earlier question to run a .bat file on multiple servers.
Below is the steps I want to execute:

a. We have 109 server (Windows 2012 Server)
b. There is a batch file in D drive with same name and location on all 109 servers
c. I want to run that particular batch file on all servers in one go
Usually when I login to my session using credentials and launch the batch file, multiple command prompt windows start loading. When I used PSexec script it works for individual machine but there too I had a challenge... If my PC gets locked the batch file fails and stops.

All I am looking here is to run that particular batch file on all servers and if I login to my session I should see it has started. I want the batch file to run under by login session. Please help as this is very critical to be completed ASAP.

Let me know if any more information required.
1
flow chart tower of hanoi graphical representation in c language and flowchart of  stack how to use of tower of hanoi
0
write a program for airline ticketing system?
Today's price of ticket from LA to Washington DC is 500 $, California 400$, Victoria 8oo$, there is half ticket for Childers bellow 12 years of age and infants bellow 4 years of age will be charged 100$ each for any destination and all the registered clients will get 10% off.
write a program to ask the client either he is a registered user or non-registered. Then ask how many passengers they want to travel, ages of all the passengers, destination where they want to go. Finally print the ticket like that.
For example:
 5 passengers want to get ticket for destination Washington Online ticket from LA to Washington 5 passengers
1. 40 year male--- 500
2. 35 years female--- 500
3. 15 years male --- 500
4. 10 years child--- 250
5-3 years infant 100
Total 1850 $ You are registered user will get 10% off Total 1665 $
Do you want to purchase another ticket Y/N
0
Hey..
  i want to create an image file of C drive of my server .. with all S\W ... When i run that iso file or create neew server at that time with all application it must be get installed .. is it possible ... pplz help ..
0

C

22K

Solutions

13K

Contributors

C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, so it has found lasting use in applications that had formerly been coded in assembly language, including operating systems as well as various application software for computers ranging from supercomputers to embedded systems. It is distinct from C++ (which has its roots in C) and C#, and many later languages have borrowed directly or indirectly from C.