<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Utkarsh Dwivedi</title>
	<atom:link href="https://www.emblogic.com/blog/author/utkarshdwivedi3394/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Started work on Sculldev and Scullqset</title>
		<link>https://www.emblogic.com/blog/07/started-to-work-on-sculldev-and-scullqset/</link>
		<comments>https://www.emblogic.com/blog/07/started-to-work-on-sculldev-and-scullqset/#comments</comments>
		<pubDate>Sun, 20 Jul 2014 11:24:08 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11186</guid>
		<description><![CDATA[struct Sculldev { struct Scullqset *scullqset; }; struct Scullqset { void **data; struct Scullqset *next; }; ==================================================================================================== RCS file: ./scull.c,v Working file: ./scull.c head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: &#8230; <a href="https://www.emblogic.com/blog/07/started-to-work-on-sculldev-and-scullqset/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>struct Sculldev<br />
{<br />
        struct Scullqset *scullqset;</p>
<p>};</p>
<p>struct Scullqset<br />
{<br />
        void **data;<br />
        struct Scullqset *next;<br />
};<br />
====================================================================================================<br />
RCS file: ./scull.c,v<br />
Working file: ./scull.c<br />
head: 1.3<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 3;	selected revisions: 3<br />
description:<br />
Started the scullset and scullqset for drivers.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/07/20 11:16:22;  author: utkarsh;  state: Exp;  lines: +11 -3<br />
With an option of writing in the file, and read hundred characters from the pre-created file.<br />
Stored the characters into the structures scullqset.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/07/18 19:52:25;  author: utkarsh;  state: Exp;  lines: +100 -8<br />
Implemented the required structure. And used the void **data.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/07/18 09:33:35;  author: utkarsh;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/started-to-work-on-sculldev-and-scullqset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linklist management program, with an included option of detecting a loop in it.</title>
		<link>https://www.emblogic.com/blog/07/linklist-management-program-with-an-included-option-of-detecting-a-loop-in-it/</link>
		<comments>https://www.emblogic.com/blog/07/linklist-management-program-with-an-included-option-of-detecting-a-loop-in-it/#comments</comments>
		<pubDate>Sun, 20 Jul 2014 11:13:21 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11183</guid>
		<description><![CDATA[To check the working of Detect_Loop function, i have created a loop for the first time when we add elements at the end. After then it is fine, and normal again. I have removed, almost every minute bugs in the &#8230; <a href="https://www.emblogic.com/blog/07/linklist-management-program-with-an-included-option-of-detecting-a-loop-in-it/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>To check the working of Detect_Loop function, i have created a loop for the first time when we add elements at the end.<br />
After then it is fine, and normal again.<br />
I have removed, almost every minute bugs in the program.<br />
In this program you will never get a segmentation fault. Also your program will never terminate undesirably. Even if you enter multiple character at the menu..</p>
<p>==========================================<br />
MAIN MENU<br />
==========================================<br />
1. Create link list<br />
2. Insert elements.<br />
3. Update an element.<br />
4. View the linklist.<br />
5. Delete an element.<br />
6. Find an element.<br />
7. Exit.<br />
8. Detect a loop<br />
Enter your choice:</p>
<p>===========================================<br />
INSERT_MENU<br />
==========================================<br />
1. Insert at the end.<br />
2. Insert at the top.<br />
3. Insert after nth element.<br />
4. Insert after key element.<br />
5. Return to main menu.<br />
6. Exit.<br />
Enter your choice:</p>
<p>====================================================================================================<br />
RCS file: ./linklist.c,v<br />
Working file: ./linklist.c<br />
head: 1.9<br />
branch:<br />
locks: strict<br />
	utkarsh: 1.9<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 9;	selected revisions: 9<br />
description:<br />
Completed upto view and insert.<br />
Debugging messages are present in the code.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9	locked by: utkarsh;<br />
date: 2014/07/20 10:40:07;  author: utkarsh;  state: Exp;  lines: +17 -2<br />
Added an option for restricted view, depends on user to see the number<br />
of elements to be displayed. Reliable in a linklist with a loop within itself.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/07/20 10:30:34;  author: utkarsh;  state: Exp;  lines: +113 -78<br />
Added an option of detecting a loop.<br />
Restricted view to 15 elements only.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/07/20 06:01:24;  author: utkarsh;  state: Exp;  lines: +92 -13<br />
Some extra bugs removed, which were returning Segmentation Fault on some occassions.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/07/19 20:24:54;  author: utkarsh;  state: Exp;  lines: +40 -1<br />
Created the next function, Insertatn().<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/07/19 19:58:36;  author: utkarsh;  state: Exp;  lines: +84 -18<br />
Made an insert menu. With insert at top, insert at end implemented.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/07/19 15:55:46;  author: utkarsh;  state: Exp;  lines: +45 -20<br />
Completed the whole linklist. Garbage code included.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/07/19 08:15:25;  author: utkarsh;  state: Exp;  lines: +20 -8<br />
C<br />
Created the function Delete().<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/07/19 07:20:06;  author: utkarsh;  state: Exp;  lines: +17 -1<br />
Created the update function.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/07/19 06:49:54;  author: utkarsh;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/linklist-management-program-with-an-included-option-of-detecting-a-loop-in-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Student Database management system, using structures and pointers</title>
		<link>https://www.emblogic.com/blog/07/student-database-management-system-using-structures-and-pointers/</link>
		<comments>https://www.emblogic.com/blog/07/student-database-management-system-using-structures-and-pointers/#comments</comments>
		<pubDate>Sun, 20 Jul 2014 10:58:25 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11181</guid>
		<description><![CDATA[========================================== MENU ========================================== 1. Add Student records 2. Delete students records 3. Update students records 4. View all student records 5. Calculate an average of a selected student&#8217;s scores 6. Show student who gets the max total score 7. Show &#8230; <a href="https://www.emblogic.com/blog/07/student-database-management-system-using-structures-and-pointers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>==========================================<br />
                  MENU<br />
==========================================<br />
1. Add Student records<br />
2. Delete students records<br />
3. Update students records<br />
4. View all student records<br />
5. Calculate an average of a selected student&#8217;s scores<br />
6. Show student who gets the max total score<br />
7. Show student who gets the min total score<br />
8. Find student by ID<br />
9. Sort records by total scores<br />
Enter your choice:</p>
<p>====================================================================================================</p>
<p>RCS file: 4.c,v<br />
Working file: 4.c<br />
head: 1.10<br />
branch:<br />
locks: strict<br />
	utkarsh: 1.10<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 10;	selected revisions: 10<br />
description:<br />
Assignment question 4.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.10	locked by: utkarsh;<br />
date: 2014/07/17 09:25:20;  author: utkarsh;  state: Exp;  lines: +114 -110<br />
Removed the bug, passed the address of struct pointer. So that after reallocation, there is no logical errors.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9<br />
date: 2014/07/17 08:26:30;  author: utkarsh;  state: Exp;  lines: +132 -90<br />
Sort function is stating some problem, doing some manipulations to sort it out<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/07/16 23:01:08;  author: utkarsh;  state: Exp;  lines: +28 -21<br />
Completed upto 8 functions with new prototype of scan(int).<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/07/16 22:09:26;  author: utkarsh;  state: Exp;  lines: +32 -22<br />
Made a new function scan to flush<br />
stdin.<br />
But it is not working that much fine.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/07/16 21:18:12;  author: utkarsh;  state: Exp;  lines: +66 -3<br />
Adding some revisions<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/07/16 20:02:23;  author: utkarsh;  state: Exp;  lines: +73 -6<br />
Completed upto 5 option.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/07/16 10:23:38;  author: utkarsh;  state: Exp;  lines: +15 -35<br />
Modified further more. Improved the format.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/07/16 10:11:02;  author: utkarsh;  state: Exp;  lines: +1 -1<br />
There was a mistake, that in realloc function, I entered size of new, which was<br />
wrong.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/07/16 10:07:20;  author: utkarsh;  state: Exp;  lines: +15 -1<br />
Some revisions<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/07/16 09:57:31;  author: utkarsh;  state: Exp;<br />
Initial revision<br />
=============================================================================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/student-database-management-system-using-structures-and-pointers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem in setting file permissions from open. Want help.</title>
		<link>https://www.emblogic.com/blog/07/problem-in-setting-file-permissions-from-open-want-help/</link>
		<comments>https://www.emblogic.com/blog/07/problem-in-setting-file-permissions-from-open-want-help/#comments</comments>
		<pubDate>Fri, 18 Jul 2014 10:16:11 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11137</guid>
		<description><![CDATA[I want to give the permissions of 0666 to my file. But due to the masking done by the umask, I am unable to set the desired file permissions. If anybody have solutions, I would be thankful.]]></description>
				<content:encoded><![CDATA[<p>I want to give the permissions of 0666 to my file. But due to the masking done by the umask, I am unable to set the desired file permissions.</p>
<p>If anybody have solutions, I would be thankful.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/problem-in-setting-file-permissions-from-open-want-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Completed the mdc for all bits, from 1 to 8</title>
		<link>https://www.emblogic.com/blog/07/completed-the-whole-mdc/</link>
		<comments>https://www.emblogic.com/blog/07/completed-the-whole-mdc/#comments</comments>
		<pubDate>Sat, 12 Jul 2014 08:38:01 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Project 2: Multiple Data Compression and Encryption]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10932</guid>
		<description><![CDATA[After working on mdc for 2 weeks, now I have completed it. Using general function for compression and decompression. After n number of iterations, the code length has been reduced to 136 written lines. I am trying to reduce it &#8230; <a href="https://www.emblogic.com/blog/07/completed-the-whole-mdc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>After working on mdc for 2 weeks, now I have completed it. Using general function for compression and decompression. After n number of iterations, the code length has been reduced to 136 written lines. I am trying to reduce it further more. The whole program is modular, and divided into sub-programs and codes.</p>
<p>I have created a global function for compression, which is capable of doing the compression and encryption from 1 to 7. It can also encrypt the 8 bit data files.<br />
I have implemented a new filter technique for decompressing, which is quite reliable, and is usable for any bit decompression.</p>
<p>I tried to reduce the code as much as I could, till now. The code-length of compression function is now 22 lines., and that of decompression is 29 lines.</p>
<p>I am not posting the code here, but if anyone wants it for study or modification. He/she may contact me on my email id.</p>
<p>utkarshdwivedi3394@gmail.com</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/completed-the-whole-mdc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print the no. in increasing and decreasing order with a single line in code</title>
		<link>https://www.emblogic.com/blog/06/print-the-no-in-increasing-and-decreasing-order-with-a-single-line-in-code/</link>
		<comments>https://www.emblogic.com/blog/06/print-the-no-in-increasing-and-decreasing-order-with-a-single-line-in-code/#comments</comments>
		<pubDate>Fri, 27 Jun 2014 09:32:03 +0000</pubDate>
		<dc:creator><![CDATA[Utkarsh Dwivedi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10679</guid>
		<description><![CDATA[Hi, Yesterday I came across a problem. The problem was to print no.(s); firstly in increasing order then decreasing order. It is not a problem at all. But the real trick was, to print it using a single line of &#8230; <a href="https://www.emblogic.com/blog/06/print-the-no-in-increasing-and-decreasing-order-with-a-single-line-in-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi,<br />
Yesterday I came across a problem. The problem was to print no.(s); firstly in increasing order then decreasing order. It is not a problem at all. But the real trick was, to print it using a single line of code. I took it as challenge, and designed  this code. After getting the desired output, I realized that now I&#8217;ve better understanding of ternary operators.<br />
If anyone has some better code, then please share.<br />
Thank you Emblogic.</p>
<p>#include&lt;stdio.h&gt;<br />
int main()<br />
{<br />
int i=-1,j=0,c = 0,n;<br />
printf(&#8220;Enter the no.: &#8220;);<br />
scanf(&#8220;%d&#8221;,&amp;n);<br />
while((j&lt;=2*n+1)&amp;&amp;printf(&#8220;%d, &#8220;, c==0 ? ( i==n ? printf(&#8220;\n&#8221;), c=i&#8211;: ++i) : i&#8211; , j++));<br />
return 0;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/06/print-the-no-in-increasing-and-decreasing-order-with-a-single-line-in-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
