Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-2007, 08:03 AM
kenna kenna is offline
Learning Programmer
 
Join Date: Jul 2007
Posts: 30
Credits: 1
Rep Power: 5
kenna is on a distinguished road
Default fread into array position

Is it possible to somehow read into a position in an array? instead of just reading into the beginning of an array.

e.g.
Code:
/* read 1000 bytes into array, beginning at 0 */
fread(array, 1, 1000, file);

/* read 1000 bytes into array, beginning at pos */
fread2(array[pos], 1, 1000, file);
EDIT: sorry! I must be tired ^^ already knew the answer, lol

Last edited by kenna; 08-17-2007 at 08:39 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS: Absolute position Lop JavaScript and CSS 8 06-03-2007 02:13 AM
Python 2D array question annannienann Python 3 04-23-2007 04:36 PM
Is string in array? smith Perl 2 02-14-2007 01:30 PM
Moving elements in an array Fischerspooner General Programming 9 12-12-2006 08:24 PM


All times are GMT -5. The time now is 07:44 PM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 733.07
chili5 ........ 309.39
Steve.L ........ 236.23
dcs ........ 214.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads